1
0
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:
Michail Vourlakos 2021-04-29 14:28:50 +03:00
parent 462e15b428
commit 2927ed04f2

View File

@ -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();
}