ProjectExplorer: Let RunConfiguration not listen to Kit changes

Relevant kit changes are (hopefully) triggering re-parses and build
changes, which in turn trigger run config updates.

Change-Id: I229699ac92eee615f246dcacea608279044dc1d4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-11-15 16:20:33 +01:00
parent 27a77f9b56
commit 27d503558f
3 changed files with 1 additions and 11 deletions

View File

@@ -95,7 +95,6 @@ QdbRunConfiguration::QdbRunConfiguration(Target *target, Core::Id id)
symbolsAspect->setFilePath(localExecutable); symbolsAspect->setFilePath(localExecutable);
}); });
connect(target, &Target::kitChanged, this, &RunConfiguration::update);
connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update); connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
setDefaultDisplayName(tr("Run on Boot2Qt Device")); setDefaultDisplayName(tr("Run on Boot2Qt Device"));

View File

@@ -80,17 +80,9 @@ DesktopRunConfiguration::DesktopRunConfiguration(Target *target, Core::Id id, Ki
setUpdater([this] { updateTargetInformation(); }); setUpdater([this] { updateTargetInformation(); });
if (kind == Qbs) { if (m_kind == CMake)
// Handles device changes, etc.
connect(target, &Target::kitChanged, this, &RunConfiguration::update);
} else if (m_kind == CMake) {
libAspect->setVisible(false); libAspect->setVisible(false);
}
connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update); connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
} }

View File

@@ -82,7 +82,6 @@ QnxRunConfiguration::QnxRunConfiguration(Target *target, Core::Id id)
}); });
connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update); connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
connect(target, &Target::kitChanged, this, &RunConfiguration::update);
} }
Runnable QnxRunConfiguration::runnable() const Runnable QnxRunConfiguration::runnable() const