Skip to content

馃崚 [kcms/automounter] Fix crash on close

Nate Graham requested to merge work/cherry-pick-9828adfb into Plasma/6.2

The KCM widget and its children are destroyed before the KCModule.

Therefore by the time we call saveLayout the widget is already deleted and accessing it crashes.

Instead save the layout right before the widget is deleted

BUG: 484690

SENTRY: SYSTEMSETTINGS-2D3

(cherry picked from commit 9828adfb)

Co-authored-by: Nicolas Fella nicolas.fella@gmx.de

Merge request reports