mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-09 00:58:15 +03:00
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
This commit is contained in:
parent
fee7761d85
commit
02ec39fda2
@ -176,6 +176,11 @@ void DockCorona::unload()
|
||||
//this form doesn't crash, while qDeleteAll(containments()) does
|
||||
delete containments().first();
|
||||
}
|
||||
|
||||
qDeleteAll(m_dockViews);
|
||||
qDeleteAll(m_waitingDockViews);
|
||||
m_dockViews.clear();
|
||||
m_waitingDockViews.clear();
|
||||
}
|
||||
|
||||
bool DockCorona::reloadLayout(QString path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user