Diffstat (limited to 'core/applets/screenshotapplet/screenshotappletimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/screenshotappletimpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.cpp b/core/applets/screenshotapplet/screenshotappletimpl.cpp index a537162..4a7512e 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.cpp +++ b/core/applets/screenshotapplet/screenshotappletimpl.cpp @@ -49,9 +49,11 @@ QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterfa if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; - + else + return QS_FALSE; + if ( *iface ) (*iface)->addRef(); return QS_OK; } |