diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index b1144e3726..e685d00920 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -45,7 +45,6 @@ GuiRef::GuiRef(GuiView & lv) { setupUi(this); - sort_ = false; at_ref_ = false; //FIXME: when/if we support the xr package for cross-reference @@ -172,7 +171,6 @@ void GuiRef::refSelected(QListWidgetItem * sel) void GuiRef::sortToggled(bool on) { - sort_ = on; redoRefs(); } @@ -225,8 +223,6 @@ void GuiRef::updateContents() if (!typeAllowed()) typeCO->setCurrentIndex(0); - sortCB->setChecked(sort_); - // insert buffer list bufferCO->clear(); FileNameList const & buffers = theBufferList().fileNames(); @@ -330,7 +326,7 @@ void GuiRef::redoRefs() refsLW->addItem(toqstr(*iter)); } - if (sort_) + if (sortCB->isEnabled() && sortCB->isChecked()) refsLW->sortItems(); referenceED->setText(oldSelection); diff --git a/src/frontends/qt4/GuiRef.h b/src/frontends/qt4/GuiRef.h index a7f389e66e..4cece7e91f 100644 --- a/src/frontends/qt4/GuiRef.h +++ b/src/frontends/qt4/GuiRef.h @@ -86,8 +86,6 @@ private: /// InsetCommandParams params_; - /// sort or not persistent state - bool sort_; /// went to a reference ? bool at_ref_; /// the last reference entered or examined