https://bugs.kde.org/show_bug.cgi?id=477001

Harald Sitter <sit...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/cf04d02a42ff08f332d6ed55f
                   |                            |a894c7e1c61b4cc
             Status|CONFIRMED                   |RESOLVED

--- Comment #4 from Harald Sitter <sit...@kde.org> ---
Git commit cf04d02a42ff08f332d6ed55fa894c7e1c61b4cc by Harald Sitter.
Committed on 25/11/2023 at 19:39.
Pushed by sitter into branch 'master'.

kfontinst: don't crash on exit

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

M  +8    -4    kcms/kfontinst/kcmfontinst/KCmFontInst.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/cf04d02a42ff08f332d6ed55fa894c7e1c61b4cc

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to