summaryrefslogtreecommitdiff
path: root/src/plugins/git/gerrit/gerritplugin.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2017-06-27 00:00:50 +0300
committerOrgad Shaneh <orgads@gmail.com>2017-06-27 06:39:28 +0000
commitf53a07953ffcc3ce8ed03283f40aabdd58dbe824 (patch)
tree3c11eda33591c4201af9ef2fb3eb6082b0fc7900 /src/plugins/git/gerrit/gerritplugin.cpp
parent1d57a7e566963741a5e823fd167246b05302ec73 (diff)
downloadqt-creator-f53a07953ffcc3ce8ed03283f40aabdd58dbe824.tar.gz
Gerrit: Avoid double refresh when opened for the first time
Change-Id: I05e50b22b6b368c655902b90585f770a332f53d3 Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/git/gerrit/gerritplugin.cpp')
-rw-r--r--src/plugins/git/gerrit/gerritplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp
index 4c5aad27fb..2dbf100619 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()