forked from qt-creator/qt-creator
ProjectExplorer: Use new RC update indirection for DesktopRunConfig
This is a minimal-invasive change, one can imagine inlining the updateTargetInformation code in the ctor, even with direct access to the aspects created there. Change-Id: Ic43fe538dec33d24ad72bc651e7775e1760b2db2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -77,11 +77,13 @@ DesktopRunConfiguration::DesktopRunConfiguration(Target *target, Core::Id id, Ki
|
||||
bti.runEnvModifier(env, libAspect->value());
|
||||
});
|
||||
|
||||
|
||||
setUpdater([this] { updateTargetInformation(); });
|
||||
|
||||
if (kind == Qbs) {
|
||||
|
||||
// Handles device changes, etc.
|
||||
connect(target, &Target::kitChanged,
|
||||
this, &DesktopRunConfiguration::updateTargetInformation);
|
||||
connect(target, &Target::kitChanged, this, &RunConfiguration::update);
|
||||
|
||||
} else if (m_kind == CMake) {
|
||||
|
||||
@@ -89,8 +91,7 @@ DesktopRunConfiguration::DesktopRunConfiguration(Target *target, Core::Id id, Ki
|
||||
|
||||
}
|
||||
|
||||
connect(target, &Target::buildSystemUpdated,
|
||||
this, &DesktopRunConfiguration::updateTargetInformation);
|
||||
connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
|
||||
}
|
||||
|
||||
void DesktopRunConfiguration::updateTargetInformation()
|
||||
|
Reference in New Issue
Block a user