summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-02-28 17:19:18 +0100
committerhjk <hjk@qt.io>2019-03-01 08:44:22 +0000
commit729c74379afe799ee1a729d0db51b3304b2f5f73 (patch)
tree52150ca8a0ca1219c67667f0e3fc9e31ebdb883f /src/plugins/pythoneditor/pythoneditorplugin.cpp
parent89c9eed127977f2ddb5409ba7aefeefe51f64fa7 (diff)
downloadqt-creator-729c74379afe799ee1a729d0db51b3304b2f5f73.tar.gz
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>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}