Skip to content
Commit c6b50001 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[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

BUG: 451233
(cherry picked from commit 813aeeb7)
parent bc6c5fee
Loading
Loading
Loading
Pipeline #197552 passed with stage
in 3 minutes and 48 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment