mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 01:33:50 +03:00
layout:fix crash from removeView
--when removeView is called the relevant containment should be first removed from containments relevant layout list in order to not be reenabled through syncLatteViewsToScreens
This commit is contained in:
parent
462e15b428
commit
2927ed04f2
@ -1653,6 +1653,7 @@ void GenericLayout::removeView(const Latte::Data::View &viewData)
|
||||
Plasma::Containment *viewcontainment = containmentForId(viewData.id.toUInt());
|
||||
|
||||
if (viewcontainment) {
|
||||
m_containments.removeAll(viewcontainment);
|
||||
viewcontainment->setImmutability(Plasma::Types::Mutable);
|
||||
viewcontainment->destroy();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user