From e6d85ebb17b96781f93e0e5b57b04f814ef226a8 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 9 Jul 2014 10:11:56 +0300 Subject: [PATCH] Valgrind: Fix error display for shadow build object() refers to the executable file (the build target), which doesn't have to be inside the project's directory. directory() refers to the directory of the frame's source file. Change-Id: Icf9885d1346acbf42ea904e69d6c8eee4d6a40cb Reviewed-by: hjk --- src/plugins/valgrind/memchecktool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index 17227ceff0b..41741a22355 100644 --- a/src/plugins/valgrind/memchecktool.cpp +++ b/src/plugins/valgrind/memchecktool.cpp @@ -163,7 +163,7 @@ bool MemcheckErrorFilterProxyModel::filterAcceptsRow(int sourceRow, const QModel for (int i = 0; i < framesToLookAt; ++i) { const Frame &frame = frames.at(i); foreach (const QString &folder, validFolders) { - if (frame.object().startsWith(folder)) { + if (frame.directory().startsWith(folder)) { inProject = true; break; }