Skip to content

kfontinst: don't crash on exit

Harald Sitter requested to merge work/sitter/nocrashyonexity into master

lifetimes have changed in kf6: widget() is a child of parent and as such a sibling to CKCmFontInst what happens at destruction is that ~parent runs -> ~widget runs (destroys its children - among them the splitters) then ~CKCmFontInst runs -> crash.

Instead simply hold on to the destroyed signal of widget which fires before its children (the splitters) get destroyed.

It feels a bit hacky but in the grands scheme of things the widget code is not long for this world anyway.

Fixes SYSTEMSETTINGS-3A

Merge request reports