diff --git a/src/plugins/valgrind/valgrindruncontrolfactory.cpp b/src/plugins/valgrind/valgrindruncontrolfactory.cpp index f1338b1665587e95640d35181bb7ec616ef33de9..fd574c4afa426bbb0caee6ef72448f15c9f58e6f 100644 --- a/src/plugins/valgrind/valgrindruncontrolfactory.cpp +++ b/src/plugins/valgrind/valgrindruncontrolfactory.cpp @@ -49,7 +49,8 @@ ValgrindRunControlFactory::ValgrindRunControlFactory(QObject *parent) : bool ValgrindRunControlFactory::canRun(RunConfiguration *runConfiguration, Core::Id mode) const { - Q_UNUSED(runConfiguration); + if (runConfiguration && !runConfiguration->runnable().is<StandardRunnable>()) + return false; return mode == CALLGRIND_RUN_MODE || mode == MEMCHECK_RUN_MODE || mode == MEMCHECK_WITH_GDB_RUN_MODE; }