summaryrefslogtreecommitdiffstats
path: root/src/kgpgme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kgpgme.cpp')
-rw-r--r--src/kgpgme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kgpgme.cpp b/src/kgpgme.cpp
index ee4372c..19c8fb8 100644
--- a/src/kgpgme.cpp
+++ b/src/kgpgme.cpp
@@ -382,12 +382,12 @@ void KGpgMe::setPassphraseCb()
if (agent_info.find(':'))
agent = true;
if(agent_info.startsWith("disable:"))
- setenv("GPG_AGENT_INFO", agent_info.mid(8), 1);
+ setenv("GPG_AGENT_INFO", agent_info.mid(8).local8Bit(), 1);
}
else
{
if(!agent_info.startsWith("disable:"))
- setenv("GPG_AGENT_INFO", "disable:" + agent_info, 1);
+ setenv("GPG_AGENT_INFO", "disable:" + agent_info.local8Bit(), 1);
}
if (agent)
gpgme_set_passphrase_cb(m_ctx, 0, 0);