From e8c228b26c5d3fc36b11e304ea0e7017c3959bea Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Thu, 9 Dec 2010 17:17:20 +0100 Subject: [PATCH] Git: Have version selection dialog default to HEAD ... if a repository is set. --- src/plugins/git/changeselectiondialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/git/changeselectiondialog.cpp b/src/plugins/git/changeselectiondialog.cpp index 2aae1679ad3..be0ea579a99 100644 --- a/src/plugins/git/changeselectiondialog.cpp +++ b/src/plugins/git/changeselectiondialog.cpp @@ -57,6 +57,9 @@ QString ChangeSelectionDialog::repository() const void ChangeSelectionDialog::setRepository(const QString &s) { m_ui.repositoryEdit->setText(QDir::toNativeSeparators(s)); + m_ui.changeNumberEdit->setFocus(Qt::ActiveWindowFocusReason); + m_ui.changeNumberEdit->setText(QLatin1String("HEAD")); + m_ui.changeNumberEdit->selectAll(); } void ChangeSelectionDialog::selectWorkingDirectory() -- GitLab