diff options
author | Petar Perisin <petar.perisin@gmail.com> | 2013-06-04 22:38:09 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-06-10 12:07:39 +0200 |
commit | 7fffe3cef6ca64874552c17fddcce8891dfc73d4 (patch) | |
tree | e8ef7864b22a91e7a26a1f053bafadae6b55d87d /src/plugins/git/gitplugin.cpp | |
parent | 6e2c3c4257e35709691dace038fe5f72b99b4cb7 (diff) | |
download | qt-creator-7fffe3cef6ca64874552c17fddcce8891dfc73d4.tar.gz |
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 <orgads@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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())); |