Skip to content

Commit

Permalink
Show warning when key has transaction ID (open-eid#1208)
Browse files Browse the repository at this point in the history
CDOC-1

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored and karl80038 committed Sep 4, 2023
1 parent 87d7456 commit 619d157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/CryptoDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ bool CryptoDoc::decrypt()
return false;
}

if(d->cdoc->version() == 2 && Settings::CDOC2_USE_KEYSERVER && !Settings::CDOC2_NOTIFICATION.isSet())
if(d->cdoc->version() == 2 && !key.transaction_id.isEmpty() && !Settings::CDOC2_NOTIFICATION.isSet())
{
auto *dlg = new WarningDialog(tr("You must enter your PIN code twice in order to decrypt the CDOC2 container. "
"The first PIN entry is required for authentication to the key server referenced in the CDOC2 container. "
Expand Down

0 comments on commit 619d157

Please sign in to comment.