Commit 3c1f3f0b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Add a customexecutablerunconfiguration if no others are available

This fixes a crash when creating a new target and then directly
switch into the run settings view.
parent 275f957c
......@@ -40,6 +40,7 @@
#include "qt-s60/s60emulatorrunconfiguration.h"
#include "qt-s60/s60createpackagestep.h"
#include <projectexplorer/customexecutablerunconfiguration.h>
#include <projectexplorer/toolchain.h>
#include <coreplugin/coreconstants.h>
#include <symbianutils/symbiandevicemanager.h>
......@@ -191,6 +192,9 @@ Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QStr
foreach (const QString &path, pathes)
t->addRunConfigurationForPath(path);
if (t->runConfigurations().isEmpty())
t->addRunConfiguration(new CustomExecutableRunConfiguration(t));
return t;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment