QMake: Stop "Run qmake" from going MIA

... whenever closing all editors.

Change-Id: Ic7d09ef1260ab1ac826bacd60fdd705585e764b6
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-02-18 12:29:33 +01:00
parent 09716d64b3
commit 839d226d70

View File

@@ -308,6 +308,8 @@ void QmakeProjectManagerPlugin::updateRunQMakeAction()
if (BuildManager::isBuilding(ProjectTree::currentProject()))
enable = false;
QmakeProject *pro = qobject_cast<QmakeProject *>(ProjectTree::currentProject());
if (!pro)
pro = qobject_cast<QmakeProject *>(SessionManager::startupProject());
if (!pro
|| !pro->activeTarget()
|| !pro->activeTarget()->activeBuildConfiguration())