Git: Disable "Actions on Commits" when there is no repository

It does nothing in this case anyway

Change-Id: I9b8ab5280375f10b3bd943855648a0a2946a4094
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-04-03 22:28:37 +03:00
committed by Orgad Shaneh
parent 0eb363f959
commit 17d2605951

View File

@@ -661,10 +661,8 @@ 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);
createRepositoryAction(gitContainer, tr("Actions on Commits..."), "Git.ChangeActions",
globalcontext, false, SLOT(startChangeRelatedAction()));
QAction *repositoryAction = new QAction(tr("Create Repository..."), this);
Core::Command *createRepositoryCommand = Core::ActionManager::registerAction(repositoryAction, "Git.CreateRepository", globalcontext);