From fe1ba6ae37ae95cfe731974d8cc760654673d1a2 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 21 Jul 2011 09:09:52 +0300 Subject: [PATCH] GUI: Simplify condition. With current code we always have both filename and linenumber for each error. --- gui/resultstree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 6665097b3..02b29cbf2 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -161,7 +161,7 @@ void ResultsTree::AddErrorItem(const ErrorItem &item) stditem->setData(QVariant(data)); //Add backtrace files as children - for (int i = 1; i < item.files.size() && i < item.lines.size(); i++) + for (int i = 1; i < item.files.size(); i++) { line.file = StripPath(item.files[i], false); line.line = item.lines[i];