summaryrefslogtreecommitdiff
path: root/noncore/applets/notesapplet/notesappletimpl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/applets/notesapplet/notesappletimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notesappletimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/applets/notesapplet/notesappletimpl.cpp b/noncore/applets/notesapplet/notesappletimpl.cpp
index 0526bad..93de433 100644
--- a/noncore/applets/notesapplet/notesappletimpl.cpp
+++ b/noncore/applets/notesapplet/notesappletimpl.cpp
@@ -29,23 +29,25 @@ QWidget *NotesAppletImpl::applet( QWidget *parent ) {
}
int NotesAppletImpl::position() const {
return 6;
}
QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( uuid == IID_QUnknown )
*iface = this;
else if ( uuid == IID_TaskbarApplet )
*iface = this;
+ else
+ return QS_FALSE;
if ( *iface )
(*iface)->addRef();
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( NotesAppletImpl )
}