fixed bug

This commit is contained in:
fourtf 2020-02-21 02:16:17 +01:00
parent a2d21510ac
commit 5a2633ef5c

View file

@ -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