mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
Fix checking if database has a key.
This commit is contained in:
parent
26436d764a
commit
900420630d
@ -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…
Reference in New Issue
Block a user