commit 066cc0c9c0ee7ac4a91982e2671c01cfd3256dee
Author: Richard Heck <[email protected]>
Date: Sat Jun 18 18:32:21 2016 -0400
Fix typo, and also check if string is null.
diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp
index 795736c..549e3cc 100644
--- a/src/frontends/qt4/GuiRef.cpp
+++ b/src/frontends/qt4/GuiRef.cpp
@@ -118,7 +118,8 @@ void GuiRef::gotoClicked()
// 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,
// 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)
last_reference_ = referenceED->text();
gotoRef();