Gerrit: Set Refresh as the default button

Without a default button, Browse is activated on return.

Task-number: QTCREATORBUG-12898
Change-Id: I8673ef91a56eac9f49770432e4c29241d3606a58
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Orgad Shaneh
2014-08-26 10:39:05 +03:00
committed by Orgad Shaneh
parent 78b642eb0c
commit 6fc20eeccb

View File

@@ -171,6 +171,7 @@ 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)));