Skip to content

Commit

Permalink
#1087, implemented disabling auto-completion of previous searches
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Dec 14, 2018
1 parent 23869cb commit 6b1bf2b
Show file tree
Hide file tree
Showing 33 changed files with 8,575 additions and 8,243 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,7 +4,10 @@
- if single application mode is enabled the app will now attempt to check if
the mode is supported on your system and turn it off if it isn't supported
(for [#1089](https://github.com/pbek/QOwnNotes/issues/1089))

- you can now disable the auto-completion of previous searches in the search
panel by turning it off in the *Panel settings* (for [#1087](https://github.com/pbek/QOwnNotes/issues/1087))
- also some memory optimization when adding new searches was done

## 18.12.3
- the Windows version of QOwnNotes is now built with Qt 5.11.2
- the Qt 5.7 build for Windows XP is now working again (for [#828](https://github.com/pbek/QOwnNotes/issues/828))
Expand Down
7 changes: 7 additions & 0 deletions src/dialogs/settingsdialog.cpp
Expand Up @@ -799,6 +799,10 @@ void SettingsDialog::storePanelSettings() {
ui->noteSubfoldersPanelShowNotesRecursivelyCheckBox
->isChecked());

settings.setValue("disableSavedSearchesAutoCompletion",
ui->disableSavedSearchesAutoCompletionCheckBox
->isChecked());

settings.setValue("noteSubfoldersPanelShowFullPath",
ui->noteSubfoldersPanelShowFullPathCheckBox->isChecked());

Expand Down Expand Up @@ -1228,6 +1232,9 @@ void SettingsDialog::readPanelSettings() {
settings.value("noteSubfoldersPanelShowNotesRecursively"
).toBool());

ui->disableSavedSearchesAutoCompletionCheckBox->setChecked(
settings.value("disableSavedSearchesAutoCompletion").toBool());

if (settings.value(
"noteSubfoldersPanelShowRootFolderName", true).toBool()) {
ui->noteSubfoldersPanelShowRootFolderNameCheckBox->setChecked(true);
Expand Down
18 changes: 17 additions & 1 deletion src/dialogs/settingsdialog.ui
Expand Up @@ -385,7 +385,7 @@
<item>
<widget class="QStackedWidget" name="settingsStackedWidget">
<property name="currentIndex">
<number>18</number>
<number>16</number>
</property>
<widget class="QWidget" name="noteFoldersPage">
<layout class="QGridLayout" name="gridLayout_19">
Expand Down Expand Up @@ -4952,6 +4952,22 @@ git config --global user.name &quot;Your name&quot;</string>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QGroupBox" name="notesPanelGroupBox_2">
<property name="title">
<string>Note search panel</string>
</property>
<layout class="QGridLayout" name="gridLayout_69">
<item row="0" column="1" colspan="2">
<widget class="QCheckBox" name="disableSavedSearchesAutoCompletionCheckBox">
<property name="text">
<string>Disable auto-completion of previous searches</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="page">
Expand Down
578 changes: 294 additions & 284 deletions src/languages/QOwnNotes_ar.ts

Large diffs are not rendered by default.

578 changes: 294 additions & 284 deletions src/languages/QOwnNotes_bn.ts

Large diffs are not rendered by default.

578 changes: 294 additions & 284 deletions src/languages/QOwnNotes_ca.ts

Large diffs are not rendered by default.

578 changes: 294 additions & 284 deletions src/languages/QOwnNotes_ceb.ts

Large diffs are not rendered by default.

578 changes: 294 additions & 284 deletions src/languages/QOwnNotes_cs.ts

Large diffs are not rendered by default.

578 changes: 294 additions & 284 deletions src/languages/QOwnNotes_de.ts

Large diffs are not rendered by default.

0 comments on commit 6b1bf2b

Please sign in to comment.