forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
0eb363f959
commit
17d2605951
@@ -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);
|
||||
|
Reference in New Issue
Block a user