From 4885bb59f1e0dd8530661481ee2be4a7b45bedf9 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Thu, 30 May 2019 12:35:25 -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 e0548515..6c26e5fa 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 |= 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++)