forked from qt-creator/qt-creator
Gerrit: Use current top level as default repository
* Remove repository setting * Disable Gerrit menu entry if there is no top level Change-Id: Ie3f4ca36ae4e7b350034dea7a0de52382da94e90 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
f7db3258b4
commit
0eb363f959
@@ -301,6 +301,7 @@ bool GerritPlugin::initialize(ActionContainer *ac)
|
||||
|
||||
void GerritPlugin::updateActions(bool hasTopLevel)
|
||||
{
|
||||
m_gerritCommand->action()->setEnabled(hasTopLevel);
|
||||
m_pushToGerritPair.first->setEnabled(hasTopLevel);
|
||||
}
|
||||
|
||||
@@ -377,6 +378,8 @@ void GerritPlugin::openView()
|
||||
connect(this, SIGNAL(fetchFinished()), gd, SLOT(fetchFinished()));
|
||||
m_dialog = gd;
|
||||
}
|
||||
if (!m_dialog->isVisible())
|
||||
m_dialog->setCurrentPath(GitPlugin::instance()->currentState().topLevel());
|
||||
const Qt::WindowStates state = m_dialog->windowState();
|
||||
if (state & Qt::WindowMinimized)
|
||||
m_dialog->setWindowState(state & ~Qt::WindowMinimized);
|
||||
|
||||
Reference in New Issue
Block a user