reparenting them to zero means they won't get destroyed when the parent

widget/applet will be destroyed

svn path=/trunk/KDE/kdelibs/; revision=1032271
This commit is contained in:
Marco Martin 2009-10-07 12:59:43 +00:00
parent 947e2cd632
commit 155bfdc62a

View File

@ -452,8 +452,6 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget)
return;
}
widget->setParentItem(0);
if (!widget->scene()) {
addItem(widget);
}