forked from qt-creator/qt-creator
ProjectExplorer: fix remove directory action context
This action is only available in the generic project so do not show it on every folder. Change-Id: I5ba0f7d966e0b88068df7e5e5c481b05e5358019 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -718,7 +718,7 @@ void setupGenericProject(QObject *guard)
|
||||
});
|
||||
|
||||
ActionBuilder removeDirAction(guard, "GenericProject.RemoveDir");
|
||||
removeDirAction.setContext(PEC::C_PROJECT_TREE);
|
||||
removeDirAction.setContext(Constants::GENERICPROJECT_ID);
|
||||
removeDirAction.setText(Tr::tr("Remove Directory"));
|
||||
removeDirAction.addToContainer(PEC::M_FOLDERCONTEXT, PEC::G_FOLDER_OTHER);
|
||||
removeDirAction.addOnTriggered([] {
|
||||
|
Reference in New Issue
Block a user