From 8f8a93e835ec5256769dda8fa6638debc64dc747 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Thu, 30 May 2019 12:54:51 -0700 Subject: [PATCH] Fix for Qt4. --- qt/lc_qpreferencesdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/lc_qpreferencesdialog.cpp b/qt/lc_qpreferencesdialog.cpp index 90d3852c..e0edbc50 100644 --- a/qt/lc_qpreferencesdialog.cpp +++ b/qt/lc_qpreferencesdialog.cpp @@ -648,7 +648,7 @@ void lcQPreferencesDialog::on_KeyboardFilterEdit_textEdited(const QString& Text) { std::function ShowItems = [&ShowItems, &Text](QTreeWidgetItem* ParentItem, bool ForceVisible) { - ForceVisible |= (bool)(ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | ParentItem->text(1).contains(Text, Qt::CaseInsensitive)); + ForceVisible |= (bool)ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | (bool)ParentItem->text(1).contains(Text, Qt::CaseInsensitive); bool Visible = ForceVisible; for (int ChildIdx = 0; ChildIdx < ParentItem->childCount(); ChildIdx++)