mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-14 10:39:35 -04:00
Fix checking if database has a key.
This commit is contained in:
parent
26436d764a
commit
900420630d
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ void DatabaseWidget::updateMasterKey(bool accepted)
|
||||||
m_db->setKey(m_changeMasterKeyWidget->newMasterKey());
|
m_db->setKey(m_changeMasterKeyWidget->newMasterKey());
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (m_db->hasKey()) {
|
else if (!m_db->hasKey()) {
|
||||||
Q_EMIT closeRequest();
|
Q_EMIT closeRequest();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue