aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgSignResult.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-27 20:23:51 +0000
committersaturneric <[email protected]>2024-11-27 20:23:51 +0000
commita83c6e28a16f998d89b956688f07ce5352a2864f (patch)
tree796ad69eee3add96df38e3e4f1dc78a82745a9db /src/core/model/GpgSignResult.cpp
parentfix: solve devops build issues (diff)
downloadGpgFrontend-a83c6e28a16f998d89b956688f07ce5352a2864f.tar.gz
GpgFrontend-a83c6e28a16f998d89b956688f07ce5352a2864f.zip
feat: improve ui logic and support more email operations
Diffstat (limited to 'src/core/model/GpgSignResult.cpp')
-rw-r--r--src/core/model/GpgSignResult.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/model/GpgSignResult.cpp b/src/core/model/GpgSignResult.cpp
index 1819c22b..b7fd2e45 100644
--- a/src/core/model/GpgSignResult.cpp
+++ b/src/core/model/GpgSignResult.cpp
@@ -62,4 +62,9 @@ auto GpgSignResult::InvalidSigners()
}
return result;
}
+
+auto GpgSignResult::HashAlgo() -> QString {
+ if (result_ref_->signatures == nullptr) return {};
+ return gpgme_hash_algo_name(result_ref_->signatures->hash_algo);
+}
} // namespace GpgFrontend \ No newline at end of file