Fix crash when multiple dbus unlock calls are issued

* Fixes #11512
This commit is contained in:
Jonathan White 2024-11-29 14:43:14 -05:00
parent 1d581ee027
commit b29993abe5

View File

@ -295,6 +295,11 @@ QString DatabaseOpenWidget::filename()
void DatabaseOpenWidget::enterKey(const QString& pw, const QString& keyFile) 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->editPassword->setText(pw);
m_ui->keyFileLineEdit->setText(keyFile); m_ui->keyFileLineEdit->setText(keyFile);
m_blockQuickUnlock = true; m_blockQuickUnlock = true;