diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index 6078cd240cc..e67c1b37627 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();