weird behavior:
qdeleteall crashes, deleting items one by one doesn't
This commit is contained in:
Marco Martin 2014-05-14 18:21:09 +02:00
parent 3f78d130a5
commit 7f4e72fb35

View File

@ -58,7 +58,11 @@ ContainmentPrivate::ContainmentPrivate(Containment *c):
Plasma::ContainmentPrivate::~ContainmentPrivate()
{
qDeleteAll(applets);
//FIXME: For some reason, qDeleteAll crashes, while deleting applets one by one is fine
foreach (Plasma::Applet *applet, applets) {
delete applet;
}
//qDeleteAll(applets);
applets.clear();
}