From 5a2633ef5cf6c1df1e72bd01e6d0a1039ba2932d Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 21 Feb 2020 02:16:17 +0100 Subject: [PATCH] fixed bug --- src/widgets/dialogs/SettingsDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/dialogs/SettingsDialog.cpp b/src/widgets/dialogs/SettingsDialog.cpp index a15b214d1..e33c260ed 100644 --- a/src/widgets/dialogs/SettingsDialog.cpp +++ b/src/widgets/dialogs/SettingsDialog.cpp @@ -104,8 +104,8 @@ void SettingsDialog::filterElements(const QString &text) for (auto &&tab : this->tabs_) { // filterElements returns true if anything on the page matches the search query - tab->setVisible(tab->name().contains(text, Qt::CaseInsensitive) || - tab->page()->filterElements(text)); + tab->setVisible(tab->page()->filterElements(text) || + tab->name().contains(text, Qt::CaseInsensitive)); } // find next visible page