forked from qt-creator/qt-creator
QbsProjectManager: Update the run config widget after a build.
The "executable" field in the local run configuration widget stayed at "unknown" directly after a build, because the widget was not informed of that information being available now. Change-Id: Iadd86ad3d36250f5a54277707fbf1d8bd2df1232 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "qbsproject.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/buildstep.h>
|
||||
#include <projectexplorer/buildsteplist.h>
|
||||
#include <projectexplorer/deployconfiguration.h>
|
||||
@@ -164,6 +165,12 @@ void QbsRunConfiguration::ctor()
|
||||
terminalAspect->setUseTerminal(isConsoleApplication());
|
||||
emit enabledChanged();
|
||||
});
|
||||
connect(BuildManager::instance(), &BuildManager::buildStateChanged, this,
|
||||
[this, project](Project *p) {
|
||||
if (p == project && !BuildManager::isBuilding(p))
|
||||
emit enabledChanged();
|
||||
}
|
||||
);
|
||||
|
||||
connect(target(), &Target::activeDeployConfigurationChanged,
|
||||
this, &QbsRunConfiguration::installStepChanged);
|
||||
|
||||
Reference in New Issue
Block a user