summaryrefslogtreecommitdiff
path: root/core/applets/restartapplet2/restart.cpp
Side-by-side diff
Diffstat (limited to 'core/applets/restartapplet2/restart.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/restartapplet2/restart.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp
index caed9e5..576087b 100644
--- a/core/applets/restartapplet2/restart.cpp
+++ b/core/applets/restartapplet2/restart.cpp
@@ -84,24 +84,26 @@ void RestartApplet::activated ( )
{
QCopEnvelope e("QPE/System", "restart()");
}
QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
{
*iface = 0;
if ( uuid == IID_QUnknown )
*iface = this;
else if ( uuid == IID_MenuApplet )
*iface = this;
+ else
+ return QS_FALSE;
if ( *iface )
(*iface)-> addRef ( );
return QS_OK;
}
Q_EXPORT_INTERFACE( )
{
Q_CREATE_INSTANCE( RestartApplet )
}