mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 13:37:43 +03: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());
|
||||
|
||||
}
|
||||
else if (m_db->hasKey()) {
|
||||
else if (!m_db->hasKey()) {
|
||||
Q_EMIT closeRequest();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue