From 056ab33f4892d522a154273324dafda08f674bfd Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 15 Dec 2021 20:48:20 -0500 Subject: [PATCH] Amend bea7ef04e (find's auto-wrap by default) The default in the .ui is not considered in GuiSearchWidget::restoreSession(), which sets a hard-coded default if the stored setting is not found in the session file. I'll start an ML discussion for whether the code in restoreSession() should use the ui's default if the setting is not found in the session. --- src/frontends/qt/GuiSearch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp index b071d61168..e387ce8ee6 100644 --- a/src/frontends/qt/GuiSearch.cpp +++ b/src/frontends/qt/GuiSearch.cpp @@ -555,8 +555,8 @@ void GuiSearchWidget::restoreSession(QString const & session_key) act_wholewords_->setChecked(settings.value(session_key + "/words", false).toBool()); instantSearchCB->setChecked(settings.value(session_key + "/instant", false).toBool()); act_immediate_->setChecked(settings.value(session_key + "/instant", false).toBool()); - wrapCB->setChecked(settings.value(session_key + "/wrap", false).toBool()); - act_wrap_->setChecked(settings.value(session_key + "/wrap", false).toBool()); + wrapCB->setChecked(settings.value(session_key + "/wrap", true).toBool()); + act_wrap_->setChecked(settings.value(session_key + "/wrap", true).toBool()); selectionCB->setChecked(settings.value(session_key + "/selection", false).toBool()); act_selection_->setChecked(settings.value(session_key + "/selection", false).toBool()); minimized_ = settings.value(session_key + "/minimized", false).toBool(); -- 2.39.5