Diffstat (limited to 'core/applets/restartapplet2/restart.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/restartapplet2/restart.cpp | 2 |
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 ( ) | |||
84 | { | 84 | { |
85 | QCopEnvelope e("QPE/System", "restart()"); | 85 | QCopEnvelope e("QPE/System", "restart()"); |
86 | } | 86 | } |
87 | 87 | ||
88 | 88 | ||
89 | QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 89 | QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
90 | { | 90 | { |
91 | *iface = 0; | 91 | *iface = 0; |
92 | if ( uuid == IID_QUnknown ) | 92 | if ( uuid == IID_QUnknown ) |
93 | *iface = this; | 93 | *iface = this; |
94 | else if ( uuid == IID_MenuApplet ) | 94 | else if ( uuid == IID_MenuApplet ) |
95 | *iface = this; | 95 | *iface = this; |
96 | else | ||
97 | return QS_FALSE; | ||
96 | 98 | ||
97 | if ( *iface ) | 99 | if ( *iface ) |
98 | (*iface)-> addRef ( ); | 100 | (*iface)-> addRef ( ); |
99 | return QS_OK; | 101 | return QS_OK; |
100 | } | 102 | } |
101 | 103 | ||
102 | Q_EXPORT_INTERFACE( ) | 104 | Q_EXPORT_INTERFACE( ) |
103 | { | 105 | { |
104 | Q_CREATE_INSTANCE( RestartApplet ) | 106 | Q_CREATE_INSTANCE( RestartApplet ) |
105 | } | 107 | } |
106 | 108 | ||
107 | 109 | ||