From 0fbab4594702442029807d92ac786b8459190334 Mon Sep 17 00:00:00 2001 From: Lukas Waslowski Date: Fri, 23 Aug 2024 12:43:55 +0000 Subject: [PATCH] Preferences: Fix mixup of checkBox_enable_search_completions vs. checkBox_enable_search_history_shortcuts Fixes the copy-paste error introduced during a refactoring in commit 6e588ec8201d86f7ecd4702fb5baa47b78fdfb5e (merged with PR #12072). --- src/preferences/dialog/dlgpreflibrary.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/preferences/dialog/dlgpreflibrary.cpp b/src/preferences/dialog/dlgpreflibrary.cpp index c5151d87a78..07596b35bdc 100644 --- a/src/preferences/dialog/dlgpreflibrary.cpp +++ b/src/preferences/dialog/dlgpreflibrary.cpp @@ -254,7 +254,7 @@ void DlgPrefLibrary::slotResetToDefaults() { setLibraryFont(QApplication::font()); spinBox_search_debouncing_timeout->setValue( WSearchLineEdit::kDefaultDebouncingTimeoutMillis); - checkBox_enable_search_history_shortcuts->setChecked( + checkBox_enable_search_completions->setChecked( WSearchLineEdit::kCompletionsEnabledDefault); checkBox_enable_search_history_shortcuts->setChecked( WSearchLineEdit::kHistoryShortcutsEnabledDefault); @@ -341,7 +341,7 @@ void DlgPrefLibrary::slotUpdate() { checkBox_edit_metadata_selected_clicked->setChecked(editMetadataSelectedClick); m_pLibrary->setEditMetadataSelectedClick(editMetadataSelectedClick); - checkBox_enable_search_history_shortcuts->setChecked(m_pConfig->getValue( + checkBox_enable_search_completions->setChecked(m_pConfig->getValue( kEnableSearchCompletionsConfigKey, WSearchLineEdit::kCompletionsEnabledDefault)); checkBox_enable_search_history_shortcuts->setChecked(m_pConfig->getValue( @@ -520,7 +520,7 @@ void DlgPrefLibrary::slotApply() { ConfigValue((int)checkBox_use_relative_path->isChecked())); m_pConfig->set(kEnableSearchCompletionsConfigKey, - ConfigValue(checkBox_enable_search_history_shortcuts->isChecked())); + ConfigValue(checkBox_enable_search_completions->isChecked())); m_pConfig->set(kEnableSearchHistoryShortcutsConfigKey, ConfigValue(checkBox_enable_search_history_shortcuts->isChecked())); updateSearchLineEditHistoryOptions();