when we go to and return from labels.
// 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.
// 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.
- last_reference_ = referenceED->text();
+ bool const toggled = last_reference_.empty();
+ if (toggled)
+ last_reference_ = referenceED->text();
- last_reference_.clear();
+ if (toggled)
+ last_reference_.clear();