https://bugs.kde.org/show_bug.cgi?id=451233
Nicolas Fella <nicolas.fe...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/plasma-desktop/commit/c6 |ma/plasma-desktop/commit/2a |b50001166dbf69ee5d3c00283ad |8d51a4ea4ed612829ac5ef0ce08 |ffcb6219370 |df34d5b5518 --- Comment #9 from Nicolas Fella <nicolas.fe...@gmx.de> --- Git commit 2a8d51a4ea4ed612829ac5ef0ce08df34d5b5518 by Nicolas Fella. Committed on 30/06/2022 at 23:42. Pushed by nicolasfella into branch 'Plasma/5.24'. [kcms/tablet] Fix crash when opening KCM for the second time DevicesModel is a global singleton, so it is still alive by the time we open the KCM for the second time However, the model is not initialized a second time, so no devices are loaded and any attempt to access data will crash To avoid this have the model as a member of the KCM class so it gets properly destroyed when the KCM is closed and recreated when opened again (cherry picked from commit 813aeeb76c2ec1bb224421be357c0020c1a4099b) M +0 -6 kcms/tablet/devicesmodel.cpp M +0 -1 kcms/tablet/devicesmodel.h M +12 -10 kcms/tablet/kcmtablet.cpp M +8 -0 kcms/tablet/kcmtablet.h M +2 -2 kcms/tablet/package/contents/ui/main.qml https://invent.kde.org/plasma/plasma-desktop/commit/2a8d51a4ea4ed612829ac5ef0ce08df34d5b5518 -- You are receiving this mail because: You are watching all bug changes.