Always hide password on unlock

Fixes #1692
This commit is contained in:
Toni Spets 2018-03-10 16:01:53 +02:00 committed by Jonathan White
parent 2b91e4d27c
commit d156457405

View File

@ -173,6 +173,9 @@ void DatabaseOpenWidget::openDatabase()
return; return;
} }
m_ui->editPassword->setShowPassword(false);
QCoreApplication::processEvents();
QFile file(m_filename); QFile file(m_filename);
if (!file.open(QIODevice::ReadOnly)) { if (!file.open(QIODevice::ReadOnly)) {
m_ui->messageWidget->showMessage( m_ui->messageWidget->showMessage(