Skip to content
Snippets Groups Projects
Commit 2e7361bb authored by Christian Stenger's avatar Christian Stenger
Browse files

Valgrind: Avoid crash when having no configured runnable


Change-Id: Ie4da5712f68176e26aaf5cda1bc1f6cb74899970
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 93ad38da
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment