aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/protocol_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/qt/src/protocol_p.h')
-rw-r--r--lang/qt/src/protocol_p.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/lang/qt/src/protocol_p.h b/lang/qt/src/protocol_p.h
index 56c296c0..36cb7199 100644
--- a/lang/qt/src/protocol_p.h
+++ b/lang/qt/src/protocol_p.h
@@ -284,8 +284,17 @@ public:
QGpgME::RefreshKeysJob *refreshKeysJob() const Q_DECL_OVERRIDE
{
- if (mProtocol == GpgME::CMS) {
- return new QGpgME::QGpgMERefreshSMIMEKeysJob;
+ if (mProtocol != GpgME::CMS) {
+ return nullptr;
+ }
+
+ return new QGpgME::QGpgMERefreshSMIMEKeysJob;
+ }
+
+ QGpgME::RefreshOpenPGPKeysJob *refreshOpenPGPKeysJob() const Q_DECL_OVERRIDE
+ {
+ if (mProtocol != GpgME::OpenPGP) {
+ return nullptr;
}
GpgME::Context *context = GpgME::Context::createForProtocol(mProtocol);