diff --git a/src/gui/DatabaseOpenWidget.cpp b/src/gui/DatabaseOpenWidget.cpp index 14d8f4650e..7f633c7fd0 100644 --- a/src/gui/DatabaseOpenWidget.cpp +++ b/src/gui/DatabaseOpenWidget.cpp @@ -295,6 +295,11 @@ QString DatabaseOpenWidget::filename() void DatabaseOpenWidget::enterKey(const QString& pw, const QString& keyFile) { + if (unlockingDatabase()) { + qWarning("Ignoring unlock request for %s because of running unlock action.", qPrintable(m_filename)); + return; + } + m_ui->editPassword->setText(pw); m_ui->keyFileLineEdit->setText(keyFile); m_blockQuickUnlock = true;