diff --git a/src/plugins/git/gerrit/gerritdialog.cpp b/src/plugins/git/gerrit/gerritdialog.cpp
index 89da1af037857a07c596a3d24694cb1ea3f1d158..74af6711285d6702c144825564c401e49a6b5bf2 100644
--- a/src/plugins/git/gerrit/gerritdialog.cpp
+++ b/src/plugins/git/gerrit/gerritdialog.cpp
@@ -171,7 +171,6 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
     m_cherryPickButton = addActionButton(tr("Cherry &Pick"), SLOT(slotFetchCherryPick()));
     m_checkoutButton = addActionButton(tr("&Checkout"), SLOT(slotFetchCheckout()));
     m_refreshButton = addActionButton(tr("&Refresh"), SLOT(slotRefresh()));
-    m_refreshButton->setDefault(true);
 
     connect(m_model, SIGNAL(refreshStateChanged(bool)),
             m_refreshButton, SLOT(setDisabled(bool)));
@@ -194,6 +193,7 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
 
     resize(QSize(950, 600));
     m_treeView->setFocus();
+    m_refreshButton->setDefault(true);
 }
 
 QString GerritDialog::repositoryPath() const