diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 0cc375fe69a..a8e98d32a67 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -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)