forked from qt-creator/qt-creator
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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user