From f53a07953ffcc3ce8ed03283f40aabdd58dbe824 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 27 Jun 2017 00:00:50 +0300 Subject: [PATCH] Gerrit: Avoid double refresh when opened for the first time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I05e50b22b6b368c655902b90585f770a332f53d3 Reviewed-by: André Hartmann --- src/plugins/git/gerrit/gerritplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index 4c5aad27fb1..2dbf1006195 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -371,13 +371,14 @@ void GerritPlugin::openView() connect(this, &GerritPlugin::fetchStarted, gd, &GerritDialog::fetchStarted); connect(this, &GerritPlugin::fetchFinished, gd, &GerritDialog::fetchFinished); m_dialog = gd; + } else { + m_dialog->refresh(); } const Qt::WindowStates state = m_dialog->windowState(); if (state & Qt::WindowMinimized) m_dialog->setWindowState(state & ~Qt::WindowMinimized); m_dialog->show(); m_dialog->raise(); - m_dialog->refresh(); } void GerritPlugin::push()