Skip to content

Commit 3bf245b

Browse files
authored
Show warning when key has transaction ID (#1208)
CDOC-1 Signed-off-by: Raul Metsma <[email protected]>
1 parent e08c566 commit 3bf245b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/CryptoDoc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ bool CryptoDoc::decrypt()
321321
return false;
322322
}
323323

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

0 commit comments

Comments
 (0)