be careful not to delete the applet handle, now that it is a child of the applet
svn path=/trunk/KDE/kdelibs/; revision=1041871
This commit is contained in:
parent
010bc85631
commit
fc17e37914
@ -81,8 +81,9 @@
|
|||||||
#include "scripting/appletscript.h"
|
#include "scripting/appletscript.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
#include "framesvg.h"
|
#include "framesvg.h"
|
||||||
#include "private/framesvg_p.h"
|
|
||||||
#include "popupapplet.h"
|
#include "popupapplet.h"
|
||||||
|
#include "private/framesvg_p.h"
|
||||||
|
#include "private/applethandle_p.h"
|
||||||
#include "theme.h"
|
#include "theme.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "widgets/iconwidget.h"
|
#include "widgets/iconwidget.h"
|
||||||
@ -350,7 +351,11 @@ void Applet::setFailedToLaunch(bool failed, const QString &reason)
|
|||||||
d->failed = failed;
|
d->failed = failed;
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
|
|
||||||
qDeleteAll(QGraphicsItem::children());
|
foreach (QGraphicsItem *item, childItems()) {
|
||||||
|
if (!dynamic_cast<AppletHandle *>(item)) {
|
||||||
|
delete item;
|
||||||
|
}
|
||||||
|
}
|
||||||
setLayout(0);
|
setLayout(0);
|
||||||
|
|
||||||
if (failed) {
|
if (failed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user