diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-04-02 21:09:10 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-04-02 21:09:10 +0000 |
commit | 715221276b46d27db69efdcc414b76e277e26428 (patch) | |
tree | 8306466be00ddddce22801e6095dbdec6c39eb3a | |
parent | fix crash in http request (diff) | |
download | gpg4usb-715221276b46d27db69efdcc414b76e277e26428.tar.gz gpg4usb-715221276b46d27db69efdcc414b76e277e26428.zip |
also drop pwcache after signing if confset
git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2@878 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | gpgcontext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpgcontext.cpp b/gpgcontext.cpp index bc4e1ef..2eef101 100644 --- a/gpgcontext.cpp +++ b/gpgcontext.cpp @@ -705,6 +705,10 @@ bool GpgContext::sign(QStringList *uidList, const QByteArray &inBuffer, QByteArr gpgme_data_release(in); gpgme_data_release(out); + if (! settings.value("general/rememberPassword").toBool()) { + clearPasswordCache(); + } + return (err == GPG_ERR_NO_ERROR); } |