aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpgcontext.cpp4
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);
}