forked from qt-creator/qt-creator
ProjectExplorer: Merge Node::isFileNodeType and asFileNode
They were identifying the same set of nodes. Change-Id: I3316cbc434ff740547bcf0baf9e5f1544f6e3f56 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -223,7 +223,7 @@ static bool supportsNodeAction(ProjectAction action, const Node *node)
|
||||
};
|
||||
|
||||
if (action == RemoveFile || action == Rename) {
|
||||
if (node->isFileNodeType())
|
||||
if (node->asFileNode())
|
||||
return !Utils::contains(project->qbsProject().buildSystemFiles(), equalsNodeFilePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user