Don't crash on exit.

BUG:284989
REVIEW:103202
This commit is contained in:
Ben Cooksley 2011-11-22 21:14:54 +13:00
parent 2bcc53419e
commit 7f0e9fb3b2

View File

@ -67,10 +67,14 @@ public:
~ContainmentPrivate() ~ContainmentPrivate()
{ {
qDeleteAll(applets); // qDeleteAll is broken with Qt4.8, delete it by hand
while (!applets.isEmpty()) {
delete applets.first();
}
applets.clear(); applets.clear();
qDeleteAll(dropMenus); qDeleteAll(dropMenus);
dropMenus.clear();
} }
void createToolBox(); void createToolBox();