diff options
author | saturneric <[email protected]> | 2024-01-16 17:41:52 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-16 17:41:52 +0000 |
commit | 5bcf07c5f6a3429bc787c31d26edd796c8cad9c6 (patch) | |
tree | f473d3c278b64396852403e5e334f87f02f5505a /src/core/GpgCoreInit.cpp | |
parent | fix: slove some issues and update translations (diff) | |
download | GpgFrontend-5bcf07c5f6a3429bc787c31d26edd796c8cad9c6.tar.gz GpgFrontend-5bcf07c5f6a3429bc787c31d26edd796c8cad9c6.zip |
fix: solve discovered issues
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp index 74e944f8..1790776e 100644 --- a/src/core/GpgCoreInit.cpp +++ b/src/core/GpgCoreInit.cpp @@ -235,7 +235,8 @@ void InitGpgFrontendCore(CoreInitArgs args) { QString gnupg_install_fs_path; // user defined - if (!custom_gnupg_install_path.isEmpty()) { + if (use_custom_gnupg_install_path && + !custom_gnupg_install_path.isEmpty()) { // check gpgconf path gnupg_install_fs_path = custom_gnupg_install_path; #ifdef WINDOWS @@ -265,7 +266,8 @@ void InitGpgFrontendCore(CoreInitArgs args) { // check key database path QString key_database_fs_path; // user defined - if (!custom_key_database_path.isEmpty()) { + if (use_custom_key_database_path && + !custom_key_database_path.isEmpty()) { key_database_fs_path = custom_key_database_path; if (VerifyKeyDatabasePath(QFileInfo(key_database_fs_path))) { GF_CORE_LOG_ERROR( |