From 35ce03dd0526a4ec94952dcfdb054a4eb6c76c6d Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Thu, 30 May 2019 12:38: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 6c26e5fa..90d3852c 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) | ParentItem->text(1).contains(Text, Qt::CaseInsensitive)); bool Visible = ForceVisible; for (int ChildIdx = 0; ChildIdx < ParentItem->childCount(); ChildIdx++)