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/81 |ma/plasma-desktop/commit/c6 |3aeeb76c2ec1bb224421be357c0 |b50001166dbf69ee5d3c00283ad |020c1a4099b |ffcb6219370 --- Comment #8 from Nicolas Fella <nicolas.fe...@gmx.de> --- Git commit c6b50001166dbf69ee5d3c00283adffcb6219370 by Nicolas Fella. Committed on 30/06/2022 at 23:40. Pushed by nicolasfella into branch 'Plasma/5.25'. [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/c6b50001166dbf69ee5d3c00283adffcb6219370 -- You are receiving this mail because: You are watching all bug changes.