forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
#include "qt-s60/s60emulatorrunconfiguration.h"
|
#include "qt-s60/s60emulatorrunconfiguration.h"
|
||||||
#include "qt-s60/s60createpackagestep.h"
|
#include "qt-s60/s60createpackagestep.h"
|
||||||
|
|
||||||
|
#include <projectexplorer/customexecutablerunconfiguration.h>
|
||||||
#include <projectexplorer/toolchain.h>
|
#include <projectexplorer/toolchain.h>
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <symbianutils/symbiandevicemanager.h>
|
#include <symbianutils/symbiandevicemanager.h>
|
||||||
@@ -191,6 +192,9 @@ Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QStr
|
|||||||
foreach (const QString &path, pathes)
|
foreach (const QString &path, pathes)
|
||||||
t->addRunConfigurationForPath(path);
|
t->addRunConfigurationForPath(path);
|
||||||
|
|
||||||
|
if (t->runConfigurations().isEmpty())
|
||||||
|
t->addRunConfiguration(new CustomExecutableRunConfiguration(t));
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user