forked from qt-creator/qt-creator
ProjectExplorer: Remove RunConfiguration::canRunForNode()
All implementations that were returning true effectively did that in case of node->buildKey() == rc->buildKey(), either directly or in disguise of qmake's projectPath, so this is the check that is used now in the two places where this is used. The new global has the theoretical potential of return true in cases where it did not before. Change-Id: Ic5829de5fef0f9a04d516a3d9207685055823775 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -163,14 +163,6 @@ void QbsRunConfiguration::updateTargetInformation()
|
||||
emit enabledChanged();
|
||||
}
|
||||
|
||||
bool QbsRunConfiguration::canRunForNode(const Node *node) const
|
||||
{
|
||||
if (auto pn = dynamic_cast<const QbsProductNode *>(node))
|
||||
return buildKey() == pn->buildKey();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
// QbsRunConfigurationFactory:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
@@ -48,7 +48,6 @@ private:
|
||||
QVariantMap toMap() const final;
|
||||
bool fromMap(const QVariantMap &map) final;
|
||||
void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &rci) final;
|
||||
bool canRunForNode(const ProjectExplorer::Node *node) const final;
|
||||
|
||||
void updateTargetInformation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user