Fix saving the new key to the settings if the 'remember key' option was set and the DB was rekeyed
This commit is contained in:
parent
329e016f8d
commit
ba6417e72f
3 changed files with 10 additions and 1 deletions
|
|
@ -180,6 +180,7 @@ class SettingsDialog(QDialog):
|
|||
QMessageBox.warning(self, "Empty key", "Key cannot be empty.")
|
||||
return
|
||||
try:
|
||||
self.key = new_key
|
||||
self._db.rekey(new_key)
|
||||
QMessageBox.information(
|
||||
self, "Key changed", "The notebook was re-encrypted with the new key!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue