mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Fix typo, and also check, if string is null.
This commit is contained in:
parent
c503804eeb
commit
bfcd8a3991
@ -118,7 +118,8 @@ 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.
|
||||||
bool const toggled = last_reference_.empty();
|
bool const toggled =
|
||||||
|
last_reference_.isEmpty() || last_reference_.isNull();
|
||||||
if (toggled)
|
if (toggled)
|
||||||
last_reference_ = referenceED->text();
|
last_reference_ = referenceED->text();
|
||||||
gotoRef();
|
gotoRef();
|
||||||
|
Loading…
Reference in New Issue
Block a user