Skip to content

Commit

Permalink
Preferences: Fix mixup of checkBox_enable_search_completions vs. chec…
Browse files Browse the repository at this point in the history
…kBox_enable_search_history_shortcuts

Fixes the copy-paste error introduced during a refactoring in commit
6e588ec (merged with PR mixxxdj#12072).
  • Loading branch information
cr7pt0gr4ph7 committed Aug 23, 2024
1 parent 17edb4e commit 0fbab45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/preferences/dialog/dlgpreflibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0fbab45

Please sign in to comment.