summaryrefslogtreecommitdiff
path: root/noncore/applets/autorotateapplet/autorotateimpl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/applets/autorotateapplet/autorotateimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/autorotateapplet/autorotateimpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/applets/autorotateapplet/autorotateimpl.cpp b/noncore/applets/autorotateapplet/autorotateimpl.cpp
index 01d8a01..1b15c6d 100644
--- a/noncore/applets/autorotateapplet/autorotateimpl.cpp
+++ b/noncore/applets/autorotateapplet/autorotateimpl.cpp
@@ -25,13 +25,14 @@ int AutoRotateImpl::position() const {
QRESULT AutoRotateImpl::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;
}