summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-16 10:34:10 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-16 10:34:10 +0200
commit0f5eb0a41164177715667e271b01015d4348ab69 (patch)
tree6616488cb86ae0e919168e7a7dafc8f55a125012
parentfb2b12c045e10c61b845df5843fd41180810a9dd (diff)
downloadkube-0f5eb0a41164177715667e271b01015d4348ab69.tar.gz
kube-0f5eb0a41164177715667e271b01015d4348ab69.zip
signatureIsGood is a catchall
so we have to check for that at the end.
-rw-r--r--components/mailviewer/qml/MailDataModel.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/mailviewer/qml/MailDataModel.qml b/components/mailviewer/qml/MailDataModel.qml
index 099548bf..ab63e8f5 100644
--- a/components/mailviewer/qml/MailDataModel.qml
+++ b/components/mailviewer/qml/MailDataModel.qml
@@ -51,12 +51,9 @@ DelegateModel {
51 var details = ""; 51 var details = "";
52 if (signatureDetails.noSignaturesFound) { 52 if (signatureDetails.noSignaturesFound) {
53 details += qsTr("This message has been signed but we failed to validate the signature.") + "\n" 53 details += qsTr("This message has been signed but we failed to validate the signature.") + "\n"
54 } else if (!signatureDetails.signatureIsGood) {
55 details += qsTr("This message is signed but the signature is invalid.") + "\n"
56 } else if (signatureDetails.keyMissing) { 54 } else if (signatureDetails.keyMissing) {
57 details += qsTr("This message has been signed using the key %1.").arg(signatureDetails.keyId) + "\n"; 55 details += qsTr("This message has been signed using the key %1.").arg(signatureDetails.keyId) + "\n";
58 details += qsTr("The key details are not available.") + "\n"; 56 details += qsTr("The key details are not available.") + "\n";
59 return details;
60 } else { 57 } else {
61 details += qsTr("This message has been signed using the key %1 by %2.").arg(signatureDetails.keyId).arg(signatureDetails.signer) + "\n"; 58 details += qsTr("This message has been signed using the key %1 by %2.").arg(signatureDetails.keyId).arg(signatureDetails.signer) + "\n";
62 if (signatureDetails.keyRevoked) { 59 if (signatureDetails.keyRevoked) {
@@ -68,7 +65,9 @@ DelegateModel {
68 if (signatureDetails.keyIsTrusted) { 65 if (signatureDetails.keyIsTrusted) {
69 details += qsTr("You are trusting this key.") + "\n" 66 details += qsTr("You are trusting this key.") + "\n"
70 } 67 }
71 } 68 if (!signatureDetails.signatureIsGood && !signatureDetails.keyRevoked && !signatureDetails.keyExpired && !signatureDetails.keyIsTrusted) {
69 details += qsTr("The signature is invalid.") + "\n"
70 }
72 return details 71 return details
73 } 72 }
74 73