From 7fffe3cef6ca64874552c17fddcce8891dfc73d4 Mon Sep 17 00:00:00 2001 From: Petar Perisin Date: Tue, 4 Jun 2013 22:38:09 +0200 Subject: Git - Get changes actions dialog back to where it was This dialog was before, in QtCreator 2.7, used only for show. It was in main git menu, and available always. Although a lot of new options were added to the dialog, I think it is good to get it back to where it was before, so that 2.7 users can find it easier. Also, I prefer this location for it, since it is easier to access here. Change-Id: I510ab0efb081194e70f6297125012034103e13e1 Reviewed-by: Orgad Shaneh Reviewed-by: Leena Miettinen Reviewed-by: Tobias Hunger --- src/plugins/git/gitplugin.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/plugins/git/gitplugin.cpp') diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 2ffba4f0bc..69b696fb6a 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -441,10 +441,6 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage) tr("Interactive Rebase..."), Core::Id("Git.InteractiveRebase"), globalcontext, true, SLOT(startRebase())); - createRepositoryAction(localRepositoryMenu, - tr("Change-related Actions..."), Core::Id("Git.ChangeRelatedActions"), - globalcontext, true, SLOT(startChangeRelatedAction())); - m_submoduleUpdateAction = createRepositoryAction(localRepositoryMenu, tr("Update Submodules"), Core::Id("Git.SubmoduleUpdate"), @@ -650,6 +646,11 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage) // -------------- gitContainer->addSeparator(globalcontext); + QAction *changesAction = new QAction(tr("Actions on Commits..."), this); + Core::Command *changesCommand = Core::ActionManager::registerAction(changesAction, "Git.ChangeActions", globalcontext); + connect(changesAction, SIGNAL(triggered()), this, SLOT(startChangeRelatedAction())); + gitContainer->addAction(changesCommand); + QAction *repositoryAction = new QAction(tr("Create Repository..."), this); Core::Command *createRepositoryCommand = Core::ActionManager::registerAction(repositoryAction, "Git.CreateRepository", globalcontext); connect(repositoryAction, SIGNAL(triggered()), this, SLOT(createRepository())); -- cgit v1.2.1