Commit 7fffe3ce authored by Petar Perisin's avatar Petar Perisin Committed by Tobias Hunger

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's avatarOrgad Shaneh <>
Reviewed-by: default avatarLeena Miettinen <>
Reviewed-by: default avatarTobias Hunger <>
parent 6e2c3c42
...@@ -441,10 +441,6 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage) ...@@ -441,10 +441,6 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
tr("Interactive Rebase..."), Core::Id("Git.InteractiveRebase"), tr("Interactive Rebase..."), Core::Id("Git.InteractiveRebase"),
globalcontext, true, SLOT(startRebase())); globalcontext, true, SLOT(startRebase()));
tr("Change-related Actions..."), Core::Id("Git.ChangeRelatedActions"),
globalcontext, true, SLOT(startChangeRelatedAction()));
m_submoduleUpdateAction = m_submoduleUpdateAction =
createRepositoryAction(localRepositoryMenu, createRepositoryAction(localRepositoryMenu,
tr("Update Submodules"), Core::Id("Git.SubmoduleUpdate"), tr("Update Submodules"), Core::Id("Git.SubmoduleUpdate"),
...@@ -650,6 +646,11 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage) ...@@ -650,6 +646,11 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
// -------------- // --------------
gitContainer->addSeparator(globalcontext); 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()));
QAction *repositoryAction = new QAction(tr("Create Repository..."), this); QAction *repositoryAction = new QAction(tr("Create Repository..."), this);
Core::Command *createRepositoryCommand = Core::ActionManager::registerAction(repositoryAction, "Git.CreateRepository", globalcontext); Core::Command *createRepositoryCommand = Core::ActionManager::registerAction(repositoryAction, "Git.CreateRepository", globalcontext);
connect(repositoryAction, SIGNAL(triggered()), this, SLOT(createRepository())); connect(repositoryAction, SIGNAL(triggered()), this, SLOT(createRepository()));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment