aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-02-01 19:08:19 +0000
committersaturneric <[email protected]>2025-02-01 19:08:19 +0000
commite6b26c2fd5f18927a51a27dafe084e65af74573a (patch)
treeae24d4a7e916ab3e1aa1d1c7d62f0919833ed518 /src/init.cpp
parentfix: use yyy-MM-dd format of create date on key list (diff)
downloadGpgFrontend-e6b26c2fd5f18927a51a27dafe084e65af74573a.tar.gz
GpgFrontend-e6b26c2fd5f18927a51a27dafe084e65af74573a.zip
fix: issues found on unit test mode
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 8ab49f08..71f24668 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -183,7 +183,7 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) {
.value("gnupg/kill_all_gnupg_daemon_at_close", false)
.toBool();
- if (!ctx->unit_test_mode && kill_all_gnupg_daemon_at_close) {
+ if (ctx->unit_test_mode || kill_all_gnupg_daemon_at_close) {
GpgAdvancedOperator::KillAllGpgComponents(nullptr);
} else if (!ctx->unit_test_mode && clear_gpg_password_cache) {
GpgAdvancedOperator::ClearGpgPasswordCache(nullptr);