From 5c951c837f46be1c1f93be2530c6b9f64ccc30fa Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 15 Feb 2019 15:47:35 +0100 Subject: [PATCH] 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 --- src/plugins/projectexplorer/projectexplorer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index d7c2250c537..b514b3f2fbb 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,