]> git.lyx.org Git - features.git/commitdiff
GuiCitation: set instant search as the default
authorGuillaume Munch <gm@lyx.org>
Wed, 22 Feb 2017 15:41:38 +0000 (16:41 +0100)
committerGuillaume Munch <gm@lyx.org>
Wed, 22 Feb 2017 15:58:38 +0000 (16:58 +0100)
It was already supposed to be the default after 7d429291, but one has to set the
default value at the level of the QSettings.

src/frontends/qt4/GuiCitation.cpp

index c121008dc5376abffa6fbe856dc8b9f299ca3410..e2b5aa9d6c0ce8865d7ab9a5007bd26d57496ca7 100644 (file)
@@ -1052,7 +1052,7 @@ void GuiCitation::restoreSession()
        QSettings settings;
        regexp_->setChecked(settings.value(sessionKey() + "/regex").toBool());
        casesense_->setChecked(settings.value(sessionKey() + "/casesensitive").toBool());
-       instant_->setChecked(settings.value(sessionKey() + "/autofind").toBool());
+       instant_->setChecked(settings.value(sessionKey() + "/autofind", true).toBool());
        style_ = settings.value(sessionKey() + "/citestyle").toInt();
        updateFilterHint();
 }