aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-02-15 15:47:35 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2019-02-18 09:46:55 +0000
commit5c951c837f46be1c1f93be2530c6b9f64ccc30fa (patch)
treed657d793c642303767c8bffdc41b9d25103bcc96 /src
parent018efa8e62a901ebb47c6227e83e487eb09c76e6 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index d7c2250c53..b514b3f2fb 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -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,