Skip to content

Commit fb0b89f

Browse files
committed
fix wrong if condition
Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 53bf28e commit fb0b89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsync/clientsideencryption.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ void ClientSideEncryption::decryptPrivateKey(const AccountPtr &account, const QB
16941694
_privateKey = privateKey;
16951695
} else {
16961696
const auto deprecatedSha1PrivateKey = EncryptionHelper::decryptPrivateKey(deprecatedSha1Password, key);
1697-
if (!privateKey.isEmpty()) {
1697+
if (!deprecatedSha1PrivateKey.isEmpty()) {
16981698
_privateKey = deprecatedSha1PrivateKey;
16991699
} else {
17001700
_privateKey = EncryptionHelper::decryptPrivateKey(deprecatedPassword, key);

0 commit comments

Comments
 (0)