From e3cd600e4e4b6d8923de8846369f03f85ebf16cc Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 17 Jul 2011 15:25:46 +0300 Subject: [PATCH] GUI: Fix always false condition. Ticket: #2827 (false negative: gui/resultstree.cpp:271 condition always false) --- gui/resultstree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 06a7d9ed7..6665097b3 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -268,7 +268,7 @@ QStandardItem *ResultsTree::AddBacktraceFiles(QStandardItem *parent, ShowTypes ResultsTree::VariantToShowType(const QVariant &data) { int value = data.toInt(); - if (value < SHOW_STYLE && value > SHOW_ERRORS) + if (value < SHOW_STYLE || value > SHOW_ERRORS) { return SHOW_NONE; }