aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/resourceeditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-02-24 10:02:39 +0100
committerhjk <hjk@qt.io>2017-02-24 13:17:46 +0000
commit6d723dfa6f9291b0edad1618a5845184cf96f904 (patch)
tree17734b9e811a3178c650fa2f16af78e9ad39fd60 /src/plugins/resourceeditor/resourceeditorplugin.cpp
parenta7809d4f5ef0710f602f8caba927d988e5af5736 (diff)
ProjectExplorer: Remove arguments from node change signals
This discourages storing the pointers needlessly. The items are still easy accessible by the static ProjectTree::currentNode() Change-Id: I3c0cd019e9fdc382afacbc9d9de3b97d5f58ae1e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorplugin.cpp')
-rw-r--r--src/plugins/resourceeditor/resourceeditorplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp
index 1528d3d52b..5dc8f83c54 100644
--- a/src/plugins/resourceeditor/resourceeditorplugin.cpp
+++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp
@@ -306,8 +306,9 @@ void ResourceEditorPlugin::renamePrefixContextMenu()
node->renamePrefix(prefix, dialog.lang());
}
-void ResourceEditorPlugin::updateContextActions(Node *node, Project *)
+void ResourceEditorPlugin::updateContextActions()
{
+ Node *node = ProjectTree::currentNode();
bool isResourceNode = dynamic_cast<ResourceTopLevelNode *>(node);
m_addPrefix->setEnabled(isResourceNode);
m_addPrefix->setVisible(isResourceNode);