From 729c74379afe799ee1a729d0db51b3304b2f5f73 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 28 Feb 2019 17:19:18 +0100 Subject: ProjectExplorer: Merge Node::isFileNodeType and asFileNode They were identifying the same set of nodes. Change-Id: I3316cbc434ff740547bcf0baf9e5f1544f6e3f56 Reviewed-by: Christian Kandeler --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index 6abb9146ca..4acb367622 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -618,7 +618,7 @@ bool PythonProjectNode::showInSimpleTree() const bool PythonProjectNode::supportsAction(ProjectAction action, const Node *node) const { - if (node->isFileNodeType()) { + if (node->asFileNode()) { return action == ProjectAction::Rename || action == ProjectAction::RemoveFile; } -- cgit v1.2.1