forked from qt-creator/qt-creator
ProjectExplorer: Remove HasSubProjectRunConfigurations enum value
Change-Id: I93cfecdcc898a80b3c75744d039b9eae19610514 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -90,7 +90,6 @@ enum ProjectAction {
|
|||||||
HidePathActions,
|
HidePathActions,
|
||||||
HideFileActions,
|
HideFileActions,
|
||||||
HideFolderActions,
|
HideFolderActions,
|
||||||
HasSubProjectRunConfigurations
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class FileNode;
|
class FileNode;
|
||||||
|
@@ -139,14 +139,6 @@ bool QmakePriFileNode::supportsAction(ProjectAction action, const Node *node) co
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action == HasSubProjectRunConfigurations) {
|
|
||||||
if (Target *t = m_project->activeTarget()) {
|
|
||||||
auto canRunForNode = [node](RunConfiguration *rc) { return rc->canRunForNode(node); };
|
|
||||||
if (Utils::anyOf(t->runConfigurations(), canRunForNode))
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user