Commit 6e72163b authored by Daniel Teske's avatar Daniel Teske Committed by Kai Koehne
Browse files

QmlProject: Enable runconfiguratons after restore



Task-number: QTCREATORBUG-7980

Change-Id: I180bfc999421a13f25f41487d7498f652432b1c5
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 0866cc6f
......@@ -74,9 +74,6 @@ QmlProject::QmlProject(Internal::Manager *manager, const QString &fileName)
Core::DocumentManager::addDocument(m_file, true);
m_manager->registerProject(this);
connect(this, SIGNAL(addedTarget(ProjectExplorer::Target*)),
this, SLOT(addedTarget(ProjectExplorer::Target*)));
}
QmlProject::~QmlProject()
......@@ -329,6 +326,15 @@ bool QmlProject::fromMap(const QVariantMap &map)
addTarget(createTarget(defaultKit));
refresh(Everything);
// addedTarget calls updateEnabled on the runconfigurations
// which needs to happen after refresh
foreach (ProjectExplorer::Target *t, targets())
addedTarget(t);
connect(this, SIGNAL(addedTarget(ProjectExplorer::Target*)),
this, SLOT(addedTarget(ProjectExplorer::Target*)));
return true;
}
......
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