Skip to content
Snippets Groups Projects
Commit e8c228b2 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Git: Have version selection dialog default to HEAD

... if a repository is set.
parent 9d3b0d5e
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
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