aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-06-08 20:27:52 +0000
committerSaturneric <[email protected]>2021-06-08 20:27:52 +0000
commitf7982062557831921d73227239b3b871348c77c0 (patch)
tree4b6b52ce96a91851904787358501c58189c42ffd
parentCheck whether the key can be encrypted before the encryption operation. (diff)
downloadGpgFrontend-f7982062557831921d73227239b3b871348c77c0.tar.gz
GpgFrontend-f7982062557831921d73227239b3b871348c77c0.zip
Adjust the output of analysis results.
Fix the problem. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--src/gpg/result_analyse/DecryptResultAnalyse.cpp4
-rw-r--r--src/gpg/result_analyse/SignResultAnalyse.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gpg/result_analyse/DecryptResultAnalyse.cpp b/src/gpg/result_analyse/DecryptResultAnalyse.cpp
index 729d5b59..79c6bc51 100644
--- a/src/gpg/result_analyse/DecryptResultAnalyse.cpp
+++ b/src/gpg/result_analyse/DecryptResultAnalyse.cpp
@@ -42,7 +42,7 @@ DecryptResultAnalyse::DecryptResultAnalyse(GpgME::GpgContext *ctx, gpgme_error_t
bool DecryptResultAnalyse::printReci(QTextStream &stream, gpgme_recipient_t reci) {
bool keyFound = true;
- stream << QApplication::tr("Signed By: ");
+ stream << QApplication::tr(">Recipient: ");
try {
auto key = mCtx->getKeyById(reci->keyid);
@@ -57,6 +57,6 @@ bool DecryptResultAnalyse::printReci(QTextStream &stream, gpgme_recipient_t reci
}
stream << endl;
- stream << "Public algo: " << gpgme_pubkey_algo_name(reci->pubkey_algo) << endl;
+ stream << "Public algo: " << gpgme_pubkey_algo_name(reci->pubkey_algo) << endl << endl;
return keyFound;
}
diff --git a/src/gpg/result_analyse/SignResultAnalyse.cpp b/src/gpg/result_analyse/SignResultAnalyse.cpp
index 9ef9dfec..eda95ff1 100644
--- a/src/gpg/result_analyse/SignResultAnalyse.cpp
+++ b/src/gpg/result_analyse/SignResultAnalyse.cpp
@@ -40,11 +40,11 @@ SignResultAnalyse::SignResultAnalyse(gpgme_error_t error, gpgme_sign_result_t re
stream << "> A New Signature: " << endl;
stream << "Sign mode: ";
- if(new_sign->type & GPGME_SIG_MODE_NORMAL)
+ if(new_sign->type == GPGME_SIG_MODE_NORMAL)
stream << "Normal";
- else if(new_sign->type & GPGME_SIG_MODE_CLEAR)
+ else if(new_sign->type == GPGME_SIG_MODE_CLEAR)
stream << "Clear";
- else if(new_sign->type & GPGME_SIG_MODE_DETACH)
+ else if(new_sign->type == GPGME_SIG_MODE_DETACH)
stream << "Detach";
stream << endl;