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 "qbsproject.h"
|
||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
|
#include <projectexplorer/buildmanager.h>
|
||||||
#include <projectexplorer/buildstep.h>
|
#include <projectexplorer/buildstep.h>
|
||||||
#include <projectexplorer/buildsteplist.h>
|
#include <projectexplorer/buildsteplist.h>
|
||||||
#include <projectexplorer/deployconfiguration.h>
|
#include <projectexplorer/deployconfiguration.h>
|
||||||
@@ -164,6 +165,12 @@ void QbsRunConfiguration::ctor()
|
|||||||
terminalAspect->setUseTerminal(isConsoleApplication());
|
terminalAspect->setUseTerminal(isConsoleApplication());
|
||||||
emit enabledChanged();
|
emit enabledChanged();
|
||||||
});
|
});
|
||||||
|
connect(BuildManager::instance(), &BuildManager::buildStateChanged, this,
|
||||||
|
[this, project](Project *p) {
|
||||||
|
if (p == project && !BuildManager::isBuilding(p))
|
||||||
|
emit enabledChanged();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
connect(target(), &Target::activeDeployConfigurationChanged,
|
connect(target(), &Target::activeDeployConfigurationChanged,
|
||||||
this, &QbsRunConfiguration::installStepChanged);
|
this, &QbsRunConfiguration::installStepChanged);
|
||||||
|
|||||||
Reference in New Issue
Block a user