forked from qt-creator/qt-creator
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 <hjk121@nokiamail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user