Fix key component widget initialization and password field echo mode on database open

This commit is contained in:
Janek Bevendorff committed 2019-04-02 00:05:39 +02:00
1 parent cb2900f5a9
commit f49a8a7f70
4 files changed
+23 -11

No files matched your search

+2 -4
View File
@@ -185,9 +185,7 @@ void DatabaseOpenWidget::openDatabase()
return;
}
if (!m_ui->editPassword->isPasswordVisible()) {
m_ui->editPassword->setShowPassword(false);
}
m_ui->editPassword->setShowPassword(false);
QCoreApplication::processEvents();
m_db.reset(new Database());
@@ -369,7 +367,7 @@ void DatabaseOpenWidget::pollYubikey()
m_ui->checkChallengeResponse->setChecked(false);
m_ui->comboChallengeResponse->setEnabled(false);
m_ui->comboChallengeResponse->clear();
m_ui->comboChallengeResponse->addItem(tr("-- SELECT --"), -1);
m_ui->comboChallengeResponse->addItem(tr("Select slot..."), -1);
m_ui->yubikeyProgress->setVisible(true);
// YubiKey init is slow, detect asynchronously to not block the UI