Commit 8bef6359 authored by Christian Kandeler's avatar Christian Kandeler

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: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent de1d48e4
......@@ -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);
......
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