Diffstat (limited to 'kalarmd/simplealarmdaemonapplet.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kalarmd/simplealarmdaemonapplet.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kalarmd/simplealarmdaemonapplet.cpp b/kalarmd/simplealarmdaemonapplet.cpp index 38a744f..3277036 100644 --- a/kalarmd/simplealarmdaemonapplet.cpp +++ b/kalarmd/simplealarmdaemonapplet.cpp @@ -15,5 +15,5 @@ SimpleAlarmDaemonApplet::SimpleAlarmDaemonApplet() SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet() { - delete mApplet; + //delete mApplet; mApplet = 0; } @@ -42,4 +42,5 @@ int SimpleAlarmDaemonApplet::position() const QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { + // qDebug(" SimpleAlarmDaemonApplet::queryInterface "); *iface = 0; if ( uuid == IID_QUnknown ) @@ -47,11 +48,11 @@ QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInte else if ( uuid == IID_TaskbarApplet ) *iface = this; + if ( *iface ) { - //(*iface)->addRef(); + (*iface)->addRef(); return QS_OK; } - return QE_NOCOMPONENT; + return QE_NOINTERFACE; } - Q_EXPORT_INTERFACE() { |