From b3ddfca2bd2a5a98daac08c251f5535d53383238 Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Mon, 23 Apr 2012 00:18:10 +0200 Subject: [PATCH] Focus the password line edit on switch to change master key widget. --- src/gui/ChangeMasterKeyWidget.cpp | 2 ++ src/gui/ChangeMasterKeyWidget.ui | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/gui/ChangeMasterKeyWidget.cpp b/src/gui/ChangeMasterKeyWidget.cpp index 0030e60b8..bbcbc7d5f 100644 --- a/src/gui/ChangeMasterKeyWidget.cpp +++ b/src/gui/ChangeMasterKeyWidget.cpp @@ -54,6 +54,8 @@ void ChangeMasterKeyWidget::clearForms() m_ui->keyFileGroup->setChecked(false); m_ui->togglePasswordButton->setChecked(true); // TODO clear m_ui->keyFileCombo + + m_ui->enterPasswordEdit->setFocus(); } CompositeKey ChangeMasterKeyWidget::newMasterKey() diff --git a/src/gui/ChangeMasterKeyWidget.ui b/src/gui/ChangeMasterKeyWidget.ui index 1ca147181..da7583666 100644 --- a/src/gui/ChangeMasterKeyWidget.ui +++ b/src/gui/ChangeMasterKeyWidget.ui @@ -151,6 +151,17 @@ + + passwordGroup + enterPasswordEdit + repeatPasswordEdit + togglePasswordButton + keyFileGroup + keyFileCombo + browseKeyFileButton + createKeyFileButton + buttonBox +