aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-08-10 15:18:32 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-08-10 15:18:32 +0000
commitbf2ec079fcfc4e21df9c89260c001e711d225460 (patch)
tree9ae3f6c6a582b19bcaa6118f9e8c80e954a47ef5
parentadded version & app-name, use it in about-dialog (diff)
downloadgpg4usb-bf2ec079fcfc4e21df9c89260c001e711d225460.tar.gz
gpg4usb-bf2ec079fcfc4e21df9c89260c001e711d225460.zip
fix gpg.exe path on windows
git-svn-id: http://cpunk.de/svn/src/gpg4usb@129 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--context.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/context.cpp b/context.cpp
index 67e931b..9db8aad 100644
--- a/context.cpp
+++ b/context.cpp
@@ -64,16 +64,11 @@ Context::Context()
* also lin/win must be checked, for calling gpg.exe if needed
*/
#ifdef _WIN32
- QString gpgBin = appPath + "\bin\gpg.exe";
- QString gpgKeys = appPath + "\keydb";
- /*err = gpgme_ctx_set_engine_info (m_ctx, GPGME_PROTOCOL_OpenPGP,
- "bin/gpg.exe", "keydb");*/
+ QString gpgBin = appPath + "/bin/gpg.exe";
#else
QString gpgBin = appPath + "/bin/gpg";
- QString gpgKeys = appPath + "/keydb";
- /*err = gpgme_ctx_set_engine_info (m_ctx, GPGME_PROTOCOL_OpenPGP,
- "./bin/gpg", "./keydb");*/
#endif
+ QString gpgKeys = appPath + "/keydb";
err = gpgme_ctx_set_engine_info(m_ctx, GPGME_PROTOCOL_OpenPGP,
gpgBin.toAscii().constData(),
gpgKeys.toAscii().constData());