Diffstat (limited to 'noncore/todayplugins/fortune/fortunepluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginimpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginimpl.cpp b/noncore/todayplugins/fortune/fortunepluginimpl.cpp index 466e322..090aaa7 100644 --- a/noncore/todayplugins/fortune/fortunepluginimpl.cpp +++ b/noncore/todayplugins/fortune/fortunepluginimpl.cpp @@ -37,9 +37,11 @@ QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterfac { *iface = 0; if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { *iface = this, (*iface)->addRef(); - } + }else + return QS_FALSE; + return QS_OK; } |