Commit b2a6899e authored by Eike Ziller's avatar Eike Ziller

ProjectExplorer: Use local convenience function

Change-Id: Ia13dcbc596c7cb5816891ed85e42ac49651fdfb6
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 2d3829ff
......@@ -3004,7 +3004,7 @@ void ProjectExplorerPluginPrivate::updateContextMenuActions()
if (currentNode->asFolderNode()) {
// Also handles ProjectNode
m_addNewFileAction->setEnabled(currentNode->supportsAction(AddNewFile, currentNode)
m_addNewFileAction->setEnabled(supports(AddNewFile)
&& !ICore::isNewItemDialogRunning());
m_addNewSubprojectAction->setEnabled(currentNode->nodeType() == NodeType::Project
&& supports(AddSubProject)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment