Gerrit: Really make Refresh the default button

Apparently setDefault must be called *after* the button is added to the
dialog.

Change-Id: I8351a666509bb4e92492388f80575ccea969c754
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Orgad Shaneh
2014-09-21 22:18:16 +03:00
committed by Orgad Shaneh
parent 48c2bc1ed7
commit fef838eed7

View File

@@ -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