Show proper error message when key is wrong for .kdb files.

This commit is contained in:
Felix Geyer 2016-04-09 16:03:03 +02:00 committed by Jonathan White
parent 8a7e98820a
commit ba68e0a4a1

View File

@ -380,6 +380,10 @@ SymmetricCipherStream* KeePass1Reader::testKeys(const QString& password, const Q
}
}
if (!cipherStream) {
raiseError(tr("Wrong key or database file is corrupt."));
}
return cipherStream.take();
}