https://bugs.kde.org/show_bug.cgi?id=451233
Nicolas Fella <nicolas.fe...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/plas | |ma/plasma-desktop/commit/81 | |3aeeb76c2ec1bb224421be357c0 | |020c1a4099b --- Comment #7 from Nicolas Fella <nicolas.fe...@gmx.de> --- Git commit 813aeeb76c2ec1bb224421be357c0020c1a4099b by Nicolas Fella. Committed on 30/06/2022 at 23:18. Pushed by nicolasfella into branch 'master'. [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 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/813aeeb76c2ec1bb224421be357c0020c1a4099b -- You are receiving this mail because: You are watching all bug changes.