From 1facd63fcc578b9ce83d433148fb16c69c1c4ac9 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 22 Oct 2008 18:51:59 +0000 Subject: [PATCH] reparent before deleting the dialog, or the widget gets deleted svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874911 --- popupapplet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/popupapplet.cpp b/popupapplet.cpp index 406b409d1..304f1485a 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -54,6 +54,7 @@ PopupApplet::PopupApplet(QObject *parent, const QVariantList &args) PopupApplet::~PopupApplet() { + delete widget(); delete d; } @@ -167,6 +168,10 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) dialog->layout()->removeWidget(qWidget); } + if (qWidget) { + qWidget->setParent(0); + } + delete dialog; dialog = 0; }