fix a crash, add dockviews deletion in unload

--during changing layouts there were cases that Latte
would crash because between deleting containment and
triggering the event to delete the dockview, there was
a race condition. The dockview wasnt deleted and as
a consequence the libtaskmanager or kwindowsystem were
forwarding events to them
pull/1/head
Michail Vourlakos 8 years ago
parent fee7761d85
commit 02ec39fda2

@ -176,6 +176,11 @@ void DockCorona::unload()
//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);
qDeleteAll(m_waitingDockViews);
m_dockViews.clear();
m_waitingDockViews.clear();
} }
bool DockCorona::reloadLayout(QString path) bool DockCorona::reloadLayout(QString path)

Loading…
Cancel
Save