kastatsfavoritesmodel.cpp: prefer .value() over operator[]
- In
removeResult
, useresource
directly so we are not comparing to a possiblenullptr
which can cause crashing - Prefer
.value
overoperator[]
to avoid leaving behindnullptr
entries when reading items
(cherry picked from commit 29e38fdf)
050c8cc6 kastatsfavoritesmodel.cpp: make sure it.value exists before trying to reload faf522c7 Compare value-id directly to resource in removeResult 81ad3a75 Use .value instead of operator[] 737178d2 Remove guards f0bce1fc Add a comment about the entry value
Co-authored-by: Akseli Lahtinen akselmo@akselmo.dev