forked from qt-creator/qt-creator
Gerrit: Avoid double refresh when opened for the first time
Change-Id: I05e50b22b6b368c655902b90585f770a332f53d3 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
1d57a7e566
commit
f53a07953f
@@ -371,13 +371,14 @@ void GerritPlugin::openView()
|
|||||||
connect(this, &GerritPlugin::fetchStarted, gd, &GerritDialog::fetchStarted);
|
connect(this, &GerritPlugin::fetchStarted, gd, &GerritDialog::fetchStarted);
|
||||||
connect(this, &GerritPlugin::fetchFinished, gd, &GerritDialog::fetchFinished);
|
connect(this, &GerritPlugin::fetchFinished, gd, &GerritDialog::fetchFinished);
|
||||||
m_dialog = gd;
|
m_dialog = gd;
|
||||||
|
} else {
|
||||||
|
m_dialog->refresh();
|
||||||
}
|
}
|
||||||
const Qt::WindowStates state = m_dialog->windowState();
|
const Qt::WindowStates state = m_dialog->windowState();
|
||||||
if (state & Qt::WindowMinimized)
|
if (state & Qt::WindowMinimized)
|
||||||
m_dialog->setWindowState(state & ~Qt::WindowMinimized);
|
m_dialog->setWindowState(state & ~Qt::WindowMinimized);
|
||||||
m_dialog->show();
|
m_dialog->show();
|
||||||
m_dialog->raise();
|
m_dialog->raise();
|
||||||
m_dialog->refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GerritPlugin::push()
|
void GerritPlugin::push()
|
||||||
|
Reference in New Issue
Block a user