diff options
author | Saturneric <[email protected]> | 2021-08-19 09:50:38 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-19 09:50:38 +0000 |
commit | ce5296d5c5aae6270dd237d03fed4588f276266d (patch) | |
tree | 619905633d9204d0304a22cd0c45598092dc980a /src/gpg/result_analyse/DecryptResultAnalyse.cpp | |
parent | Bugs Fixed; Code Modified; (diff) | |
download | GpgFrontend-ce5296d5c5aae6270dd237d03fed4588f276266d.tar.gz GpgFrontend-ce5296d5c5aae6270dd237d03fed4588f276266d.zip |
Bugs Fixed;
Diffstat (limited to '')
-rw-r--r-- | src/gpg/result_analyse/DecryptResultAnalyse.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpg/result_analyse/DecryptResultAnalyse.cpp b/src/gpg/result_analyse/DecryptResultAnalyse.cpp index efd0a599..b4d0b14f 100644 --- a/src/gpg/result_analyse/DecryptResultAnalyse.cpp +++ b/src/gpg/result_analyse/DecryptResultAnalyse.cpp @@ -65,17 +65,18 @@ bool DecryptResultAnalyse::printReci(QTextStream &stream, gpgme_recipient_t reci bool keyFound = true; stream << QApplication::tr(" {>} Recipient: "); - try { - auto key = mCtx->getKeyById(reci->keyid); + auto key = mCtx->getKeyById(reci->keyid); + if(key.good) { stream << key.name; if (!key.email.isEmpty()) { stream << "<" << key.email << ">"; } - } catch (std::runtime_error &ignored) { + } else { stream << "<Unknown>"; setStatus(0); keyFound = false; } + stream << Qt::endl; stream << tr(" Keu ID: ") << reci->keyid << Qt::endl; |