aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyOpera.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-02-03 19:41:16 +0000
committersaturneric <[email protected]>2025-02-03 19:41:16 +0000
commit349269cadaa757622403279c94c3f181cf9130ac (patch)
tree33ad72d79b9ef736e7b4f617ad978a543f4de6cc /src/core/function/gpg/GpgKeyOpera.cpp
parentMerge branch 'develop' (diff)
parenttranslation: update zh_CN and de_DE (diff)
downloadGpgFrontend-349269cadaa757622403279c94c3f181cf9130ac.tar.gz
GpgFrontend-349269cadaa757622403279c94c3f181cf9130ac.zip
Merge branch 'develop'
Diffstat (limited to 'src/core/function/gpg/GpgKeyOpera.cpp')
-rw-r--r--src/core/function/gpg/GpgKeyOpera.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/function/gpg/GpgKeyOpera.cpp b/src/core/function/gpg/GpgKeyOpera.cpp
index 23a848ee..9511b347 100644
--- a/src/core/function/gpg/GpgKeyOpera.cpp
+++ b/src/core/function/gpg/GpgKeyOpera.cpp
@@ -111,7 +111,7 @@ void GpgKeyOpera::GenerateRevokeCert(const GpgKey& key,
// dealing with reason text
auto reason_text_lines = GpgFrontend::SecureCreateSharedObject<QStringList>(
- revocation_reason_text.split('\n', Qt::SkipEmptyParts).toVector());
+ revocation_reason_text.split('\n', Qt::SkipEmptyParts));
const auto app_path = Module::RetrieveRTValueTypedOrDefault<>(
"core", "gpgme.ctx.app_path", QString{});
@@ -124,10 +124,10 @@ void GpgKeyOpera::GenerateRevokeCert(const GpgKey& key,
if (exit_code != 0) {
LOG_W() << "gnupg gen revoke execute error, process stderr: "
<< p_err << ", process stdout: " << p_out;
- } else {
- FLOG_D("gnupg gen revoke exit_code: %d, process stdout size: %lld",
- exit_code, p_out.size());
+ return;
}
+ LOG_D() << "gnupg gen revoke exit_code: " << exit_code
+ << "process stdout size: " << p_out.size();
},
nullptr,
[revocation_reason_code, reason_text_lines](QProcess* proc) -> void {