Commit 6fc20eec authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

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: default avatarEike Ziller <eike.ziller@digia.com>
parent 78b642eb
......@@ -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)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment