From 619d1578b3e43c4e7bc66994b5bd7651f8ddb01f Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Fri, 14 Jul 2023 22:59:28 +0300 Subject: [PATCH] Show warning when key has transaction ID (#1208) CDOC-1 Signed-off-by: Raul Metsma --- client/CryptoDoc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CryptoDoc.cpp b/client/CryptoDoc.cpp index b485d437..381a28b3 100644 --- a/client/CryptoDoc.cpp +++ b/client/CryptoDoc.cpp @@ -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. "