Gerrit: Do not refresh the gerrit dialog when it is invisible

Change-Id: Icd4387f69b616f275b46b3b12e8db90b4b280554
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-06-07 22:36:34 +03:00
committed by Orgad Shaneh
parent c801965b58
commit 95f49a3c8c

View File

@@ -302,7 +302,7 @@ void GerritPlugin::updateActions(const VcsBase::VcsBasePluginState &state)
const bool hasTopLevel = state.hasTopLevel();
m_gerritCommand->action()->setEnabled(hasTopLevel);
m_pushToGerritCommand->action()->setEnabled(hasTopLevel);
if (m_dialog)
if (m_dialog && m_dialog->isVisible())
m_dialog->setCurrentPath(state.topLevel());
}