summaryrefslogtreecommitdiff
path: root/src/plugins/git/gerrit/gerritplugin.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2013-06-09 11:51:05 +0200
committerAndré Hartmann <aha_1980@gmx.de>2013-06-11 16:24:47 +0200
commitf1ed40a02cdb62bd80111f9b4969770215430389 (patch)
tree25e963e106dc57254c3df35a5cb82d489b36eec1 /src/plugins/git/gerrit/gerritplugin.cpp
parent0eebbf464b6d0d42be032f4dd0db32b31df13679 (diff)
downloadqt-creator-f1ed40a02cdb62bd80111f9b4969770215430389.tar.gz
Git: Add Gerrit to Locator
The Gerrit dialog itself was missing while Push to Gerrit was already there. Change-Id: Ie4b85cad9dba96beafb595c505daf28d0a1ceeb5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Diffstat (limited to 'src/plugins/git/gerrit/gerritplugin.cpp')
-rw-r--r--src/plugins/git/gerrit/gerritplugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp
index f24384a20e..f1deaa2a07 100644
--- a/src/plugins/git/gerrit/gerritplugin.cpp
+++ b/src/plugins/git/gerrit/gerritplugin.cpp
@@ -276,11 +276,11 @@ bool GerritPlugin::initialize(Core::ActionContainer *ac)
QAction *openViewAction = new QAction(tr("Gerrit..."), this);
- Core::Command *command =
+ m_gerritCommand =
Core::ActionManager::registerAction(openViewAction, Constants::GERRIT_OPEN_VIEW,
Core::Context(Core::Constants::C_GLOBAL));
connect(openViewAction, SIGNAL(triggered()), this, SLOT(openView()));
- ac->addAction(command);
+ ac->addAction(m_gerritCommand);
QAction *pushAction = new QAction(tr("Push to Gerrit..."), this);
@@ -303,6 +303,7 @@ void GerritPlugin::updateActions(bool hasTopLevel)
void GerritPlugin::addToLocator(Locator::CommandLocator *locator)
{
+ locator->appendCommand(m_gerritCommand);
locator->appendCommand(m_pushToGerritPair.second);
}