forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -108,9 +108,10 @@ void CMakeProjectPlugin::extensionsInitialized()
|
||||
CMakeToolManager::restoreCMakeTools();
|
||||
}
|
||||
|
||||
void CMakeProjectPlugin::updateContextActions(ProjectExplorer::Node *node,
|
||||
ProjectExplorer::Project *project)
|
||||
void CMakeProjectPlugin::updateContextActions()
|
||||
{
|
||||
Project *project = ProjectTree::currentProject();
|
||||
Node *node = ProjectTree::currentNode();
|
||||
CMakeTargetNode *targetNode = dynamic_cast<CMakeTargetNode *>(node);
|
||||
// as targetNode can be deleted while the menu is open, we keep only the
|
||||
const QString targetDisplayName = targetNode ? targetNode->displayName() : QString();
|
||||
|
||||
Reference in New Issue
Block a user