cleanup unload() corona function

pull/1/head
Michail Vourlakos 8 years ago
parent badcaa5474
commit 0889d2224d

@ -181,19 +181,11 @@ void DockCorona::unload()
{ {
qDebug() << "unload: removing dockViews and containments..."; qDebug() << "unload: removing dockViews and containments...";
//foreach (auto cont, containments()) {
//dockContainmentDestroyed(cont);
// }
while (!containments().isEmpty()) { while (!containments().isEmpty()) {
//deleting a containment will remove it from the list due to QObject::destroyed connect in Corona //deleting a containment will remove it from the list due to QObject::destroyed connect in Corona
//this form doesn't crash, while qDeleteAll(containments()) does //this form doesn't crash, while qDeleteAll(containments()) does
delete containments().first(); delete containments().first();
} }
/*qDeleteAll(m_dockViews);
m_dockViews.clear();
m_waitingDockViews.clear();*/
} }
bool DockCorona::reloadLayout(QString path) bool DockCorona::reloadLayout(QString path)

Loading…
Cancel
Save