mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 05:27:39 +03:00
Correct checks for containers' emptiness
This commit is contained in:
parent
fc930bae69
commit
e81841550b
6 changed files with 9 additions and 8 deletions
|
@ -267,7 +267,7 @@ void TestKeePass1Reader::reopenDatabase(QSharedPointer<Database> db,
|
|||
QVERIFY(buffer.seek(0));
|
||||
|
||||
auto key = QSharedPointer<CompositeKey>::create();
|
||||
if (!password.isNull()) {
|
||||
if (!password.isEmpty()) {
|
||||
key->addKey(QSharedPointer<PasswordKey>::create(password));
|
||||
}
|
||||
if (!keyfileName.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue