forked from qt-creator/qt-creator
Set newly created runconfiguration active in QML project
This commit is contained in:
@@ -291,11 +291,13 @@ QStringList QmlProject::files(FilesMode) const
|
||||
|
||||
bool QmlProject::fromMap(const QVariantMap &map)
|
||||
{
|
||||
Project::fromMap(map);
|
||||
if (!Project::fromMap(map))
|
||||
return false;
|
||||
|
||||
if (runConfigurations().isEmpty()) {
|
||||
QmlRunConfiguration *runConf = new QmlRunConfiguration(this);
|
||||
addRunConfiguration(runConf);
|
||||
setActiveRunConfiguration(runConf);
|
||||
}
|
||||
|
||||
refresh(Everything);
|
||||
|
Reference in New Issue
Block a user