From 687e1f57a1972b739b0505d48bab0c7bbca212bd Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 11 Nov 2009 01:55:11 +0000 Subject: [PATCH] set a parent on the item so we can count on it getting deleted when we remove it svn path=/trunk/KDE/kdelibs/; revision=1047342 --- applet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/applet.cpp b/applet.cpp index a224c9e1e..bf19561e0 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1116,6 +1116,7 @@ void Applet::showMessage(const QIcon &icon, const QString &message, const Messag delete d->messageDialog.data(); d->createMessageOverlay(); d->messageOverlay->opacity = 0.8; + mainWidget->setParentItem(d->messageOverlay); QGraphicsLinearLayout *l = new QGraphicsLinearLayout(d->messageOverlay); l->addItem(mainWidget); }