Commit 8d110837 authored by Daniel Teske's avatar Daniel Teske Committed by Kai Koehne

QmlProject: Prevent renaming .qmlproject files

That doesn't work, it doesn't look to hard to fix that, but the use case
for it is rather small anyway.

Task-number: QTCREATORBUG-10934
Change-Id: Idcb1fab96a67330e998590b70760b3c97e4cb780
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 920d524d
......@@ -176,7 +176,11 @@ QList<ProjectExplorer::ProjectNode::ProjectAction> QmlProjectNode::supportedActi
QList<ProjectAction> actions;
actions.append(AddNewFile);
actions.append(EraseFile);
actions.append(Rename);
if (node->nodeType() == ProjectExplorer::FileNodeType) {
ProjectExplorer::FileNode *fileNode = static_cast<ProjectExplorer::FileNode *>(node);
if (fileNode->fileType() != ProjectExplorer::ProjectFileType)
actions.append(Rename);
}
return actions;
}
......
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