forked from qt-creator/qt-creator
Gerrit: Remove repo selection from the dialog
Behave like the Branches dialog, which is updated by the current open file. Change-Id: Id106b3e4fa777bcbf08b826f4e7d52845dde57a6 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ffbc331168
commit
f77af5e336
@@ -647,7 +647,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
/* "Gerrit" */
|
||||
m_gerritPlugin = new Gerrit::Internal::GerritPlugin(this);
|
||||
const bool ok = m_gerritPlugin->initialize(remoteRepositoryMenu);
|
||||
m_gerritPlugin->updateActions(currentState().hasTopLevel());
|
||||
m_gerritPlugin->updateActions(currentState());
|
||||
m_gerritPlugin->addToLocator(m_commandLocator);
|
||||
|
||||
return ok;
|
||||
@@ -1354,7 +1354,7 @@ void GitPlugin::updateActions(VcsBasePlugin::ActionState as)
|
||||
updateContinueAndAbortCommands();
|
||||
updateRepositoryBrowserAction();
|
||||
|
||||
m_gerritPlugin->updateActions(repositoryEnabled);
|
||||
m_gerritPlugin->updateActions(state);
|
||||
}
|
||||
|
||||
void GitPlugin::updateContinueAndAbortCommands()
|
||||
|
Reference in New Issue
Block a user