forked from qt-creator/qt-creator
ProjectExplorer: Move "Close project" to the end of its group
... in the context menu. That's where it was before, and that's where
developer fingers seem to expect it.
Amends 03f76770e1
.
Change-Id: I1ea16a30a9238a3aff82830c676b1cea0759eeb1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1145,14 +1145,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
mprojectContextMenu->addAction(cmd, Constants::G_PROJECT_FILES);
|
||||
msubProjectContextMenu->addAction(cmd, Constants::G_PROJECT_FILES);
|
||||
|
||||
// unload project again, in right position
|
||||
dd->m_unloadActionContextMenu = new Utils::ParameterAction(tr("Close Project"), tr("Close Project \"%1\""),
|
||||
Utils::ParameterAction::EnabledWithParameter, this);
|
||||
cmd = ActionManager::registerAction(dd->m_unloadActionContextMenu, Constants::UNLOADCM);
|
||||
cmd->setAttribute(Command::CA_UpdateText);
|
||||
cmd->setDescription(dd->m_unloadActionContextMenu->text());
|
||||
mprojectContextMenu->addAction(cmd, Constants::G_PROJECT_LAST);
|
||||
|
||||
dd->m_closeProjectFilesActionContextMenu = new Utils::ParameterAction(
|
||||
tr("Close All Files"), tr("Close All Files in Project \"%1\""),
|
||||
Utils::ParameterAction::EnabledWithParameter, this);
|
||||
@@ -1162,6 +1154,14 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
cmd->setDescription(dd->m_closeProjectFilesActionContextMenu->text());
|
||||
mprojectContextMenu->addAction(cmd, Constants::G_PROJECT_LAST);
|
||||
|
||||
// unload project again, in right position
|
||||
dd->m_unloadActionContextMenu = new Utils::ParameterAction(tr("Close Project"), tr("Close Project \"%1\""),
|
||||
Utils::ParameterAction::EnabledWithParameter, this);
|
||||
cmd = ActionManager::registerAction(dd->m_unloadActionContextMenu, Constants::UNLOADCM);
|
||||
cmd->setAttribute(Command::CA_UpdateText);
|
||||
cmd->setDescription(dd->m_unloadActionContextMenu->text());
|
||||
mprojectContextMenu->addAction(cmd, Constants::G_PROJECT_LAST);
|
||||
|
||||
// file properties action
|
||||
dd->m_filePropertiesAction = new QAction(tr("Properties..."), this);
|
||||
cmd = ActionManager::registerAction(dd->m_filePropertiesAction, Constants::FILEPROPERTIES,
|
||||
|
Reference in New Issue
Block a user