forked from qt-creator/qt-creator
Gerrit: Do not refresh dialog on update remotes when hidden
Change-Id: Ie9b00c1a117b1b2a3823dcb9249ed563b3dbd4a7 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
2a3bfea8a9
commit
d7b8dcc684
@@ -224,6 +224,7 @@ void GerritDialog::remoteChanged()
|
||||
return;
|
||||
}
|
||||
*m_server = server;
|
||||
if (isVisible())
|
||||
refresh();
|
||||
}
|
||||
|
||||
|
||||
@@ -358,8 +358,8 @@ void GerritPlugin::openView()
|
||||
m_dialog = gd;
|
||||
} else {
|
||||
m_dialog->setCurrentPath(currentRepository());
|
||||
m_dialog->refresh();
|
||||
}
|
||||
m_dialog->refresh();
|
||||
const Qt::WindowStates state = m_dialog->windowState();
|
||||
if (state & Qt::WindowMinimized)
|
||||
m_dialog->setWindowState(state & ~Qt::WindowMinimized);
|
||||
|
||||
Reference in New Issue
Block a user