mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Be a bit more careful about setting and restoring the last reference
when we go to and return from labels.
(cherry picked from commit 68b60ec529
)
This commit is contained in:
parent
fb97294229
commit
c503804eeb
@ -118,9 +118,12 @@ void GuiRef::gotoClicked()
|
|||||||
// to which we are going (or from which we are returning) is
|
// to which we are going (or from which we are returning) is
|
||||||
// restored in the dialog. It's a bit of a hack, but it works,
|
// restored in the dialog. It's a bit of a hack, but it works,
|
||||||
// and no-one seems to have any better idea.
|
// and no-one seems to have any better idea.
|
||||||
last_reference_ = referenceED->text();
|
bool const toggled = last_reference_.empty();
|
||||||
|
if (toggled)
|
||||||
|
last_reference_ = referenceED->text();
|
||||||
gotoRef();
|
gotoRef();
|
||||||
last_reference_.clear();
|
if (toggled)
|
||||||
|
last_reference_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user