From f9abf2171bbfaba066601bb1938274ad1ee00969 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 22 Apr 2012 20:57:42 +0200 Subject: [PATCH] Focus the password line edit by default. --- src/gui/DatabaseOpenDialog.cpp | 2 ++ src/gui/DatabaseOpenDialog.ui | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/gui/DatabaseOpenDialog.cpp b/src/gui/DatabaseOpenDialog.cpp index 829d64541..5ab0f479c 100644 --- a/src/gui/DatabaseOpenDialog.cpp +++ b/src/gui/DatabaseOpenDialog.cpp @@ -55,6 +55,8 @@ DatabaseOpenDialog::DatabaseOpenDialog(QFile* file, QString filename, QWidget* p m_ui->checkKeyFile->setChecked(true); m_ui->comboKeyFile->addItem(lastKeyFiles[m_filename].toString()); } + + m_ui->editPassword->setFocus(); } DatabaseOpenDialog::~DatabaseOpenDialog() diff --git a/src/gui/DatabaseOpenDialog.ui b/src/gui/DatabaseOpenDialog.ui index 58932bbac..86c04d9c1 100644 --- a/src/gui/DatabaseOpenDialog.ui +++ b/src/gui/DatabaseOpenDialog.ui @@ -88,6 +88,15 @@ + + checkPassword + editPassword + buttonTogglePassword + checkKeyFile + comboKeyFile + buttonBrowseFile + buttonBox +