Skip to content
Snippets Groups Projects
Commit fef838ee authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

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: default avatarEike Ziller <eike.ziller@digia.com>
parent 48c2bc1e
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,6 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p, ...@@ -171,7 +171,6 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
m_cherryPickButton = addActionButton(tr("Cherry &Pick"), SLOT(slotFetchCherryPick())); m_cherryPickButton = addActionButton(tr("Cherry &Pick"), SLOT(slotFetchCherryPick()));
m_checkoutButton = addActionButton(tr("&Checkout"), SLOT(slotFetchCheckout())); m_checkoutButton = addActionButton(tr("&Checkout"), SLOT(slotFetchCheckout()));
m_refreshButton = addActionButton(tr("&Refresh"), SLOT(slotRefresh())); m_refreshButton = addActionButton(tr("&Refresh"), SLOT(slotRefresh()));
m_refreshButton->setDefault(true);
connect(m_model, SIGNAL(refreshStateChanged(bool)), connect(m_model, SIGNAL(refreshStateChanged(bool)),
m_refreshButton, SLOT(setDisabled(bool))); m_refreshButton, SLOT(setDisabled(bool)));
...@@ -194,6 +193,7 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p, ...@@ -194,6 +193,7 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
resize(QSize(950, 600)); resize(QSize(950, 600));
m_treeView->setFocus(); m_treeView->setFocus();
m_refreshButton->setDefault(true);
} }
QString GerritDialog::repositoryPath() const QString GerritDialog::repositoryPath() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment