mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-31 02:28:54 -04:00
Properly handle a missing key filename.
This commit is contained in:
parent
107c0673c7
commit
aff935b3c7
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ void DatabaseRepairWidget::openDatabase()
|
||||||
if (!key.load(keyFilename, &errorMsg)) {
|
if (!key.load(keyFilename, &errorMsg)) {
|
||||||
MessageBox::warning(this, tr("Error"), tr("Can't open key file").append(":\n").append(errorMsg));
|
MessageBox::warning(this, tr("Error"), tr("Can't open key file").append(":\n").append(errorMsg));
|
||||||
Q_EMIT editFinished(false);
|
Q_EMIT editFinished(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
masterKey.addKey(key);
|
masterKey.addKey(key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue