aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/memchecktool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/valgrind/memchecktool.cpp')
-rw-r--r--src/plugins/valgrind/memchecktool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp
index 6078cd240c..e67c1b3762 100644
--- a/src/plugins/valgrind/memchecktool.cpp
+++ b/src/plugins/valgrind/memchecktool.cpp
@@ -780,8 +780,9 @@ void MemcheckTool::heobAction()
TaskHub::requestPopup();
return;
}
- if (!QFile::exists(executable)
- && !QFile::exists(Utils::HostOsInfo::withExecutableSuffix(executable))) {
+ if (!QFile::exists(executable))
+ executable = Utils::HostOsInfo::withExecutableSuffix(executable);
+ if (!QFile::exists(executable)) {
const QString msg = tr("Heob: Cannot find %1.").arg(executable);
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
TaskHub::requestPopup();