aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/controller/GnuPGControllerDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 17:35:45 +0000
committersaturneric <[email protected]>2025-04-18 17:35:45 +0000
commitd115562e6cb231356ef87a2ab86f4da1159a9e41 (patch)
treec079dd49cf0a991b17cb96ad4f05d558567908c0 /src/ui/dialog/controller/GnuPGControllerDialog.cpp
parentfeat: add more basic env checks at init (diff)
downloadGpgFrontend-d115562e6cb231356ef87a2ab86f4da1159a9e41.tar.gz
GpgFrontend-d115562e6cb231356ef87a2ab86f4da1159a9e41.zip
fix: issues found on macos
Diffstat (limited to 'src/ui/dialog/controller/GnuPGControllerDialog.cpp')
-rw-r--r--src/ui/dialog/controller/GnuPGControllerDialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/dialog/controller/GnuPGControllerDialog.cpp b/src/ui/dialog/controller/GnuPGControllerDialog.cpp
index 5dacae65..3f21b57b 100644
--- a/src/ui/dialog/controller/GnuPGControllerDialog.cpp
+++ b/src/ui/dialog/controller/GnuPGControllerDialog.cpp
@@ -333,7 +333,8 @@ auto GnuPGControllerDialog::check_custom_gnupg_path(QString path) -> bool {
QMessageBox::critical(this, tr("Illegal GnuPG Path"),
tr("Target GnuPG Path is not an absolute path."));
}
-#ifdef __MINGW32__
+
+#if defined(_WIN32) || defined(WIN32)
QFileInfo const gpgconf_info(path + "/gpgconf.exe");
#else
QFileInfo const gpgconf_info(path + "/gpgconf");