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
parent bde4d63fdb
commit 57c1a0f4b6

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();
}