forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
c801965b58
commit
95f49a3c8c
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user