diff --git a/containment.cpp b/containment.cpp index 5367bd542..315b8e8d7 100644 --- a/containment.cpp +++ b/containment.cpp @@ -2184,7 +2184,6 @@ void ContainmentPrivate::appletDestroyed(Plasma::Applet *applet) if (q->scene()) { q->scene()->removeItem(handle); } - handle->deleteLater(); } emit q->appletRemoved(applet); diff --git a/private/applethandle.cpp b/private/applethandle.cpp index 95c8f88d9..bffa8c464 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -85,7 +85,7 @@ AppletHandle::AppletHandle(Containment *parent, Applet *applet, const QPointF &h connect(m_hoverTimer, SIGNAL(timeout()), this, SLOT(hoverTimeout())); connect(m_leaveTimer, SIGNAL(timeout()), this, SLOT(leaveTimeout())); - connect(m_applet, SIGNAL(destroyed(QObject*)), this, SLOT(appletDestroyed())); + connect(m_applet, SIGNAL(appletDestroyed(Plasma::Applet*)), this, SLOT(appletDestroyed())); setAcceptsHoverEvents(true); m_hoverTimer->start();