Diffstat (limited to 'core/applets/restartapplet/restartappletimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/restartapplet/restartappletimpl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/applets/restartapplet/restartappletimpl.cpp b/core/applets/restartapplet/restartappletimpl.cpp index d8e10d3..3adc80c 100644 --- a/core/applets/restartapplet/restartappletimpl.cpp +++ b/core/applets/restartapplet/restartappletimpl.cpp @@ -33,7 +33,6 @@ RestartAppletImpl::~RestartAppletImpl() QWidget *RestartAppletImpl::applet( QWidget *parent ) { - qDebug("restart applet"); if ( !restart ) restart = new RestartApplet( parent ); return restart; @@ -52,8 +51,8 @@ QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface else if ( uuid == IID_TaskbarApplet ) *iface = this; else - return QS_FALSE; - + return QS_FALSE; + if ( *iface ) (*iface)->addRef(); return QS_OK; |