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 @@ -32,9 +32,8 @@ RestartAppletImpl::~RestartAppletImpl() } QWidget *RestartAppletImpl::applet( QWidget *parent ) { - qDebug("restart applet"); if ( !restart ) restart = new RestartApplet( parent ); return restart; } @@ -51,10 +50,10 @@ QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; else - return QS_FALSE; - + return QS_FALSE; + if ( *iface ) (*iface)->addRef(); return QS_OK; } |