[PATCH] wallpapers/image: don't crash when removing /usr/share
authorMarco Martin <notmart@gmail.com>
Wed, 28 May 2025 08:56:49 +0000 (10:56 +0200)
committerAurélien COUDERC <coucouf@debian.org>
Mon, 21 Jul 2025 16:21:10 +0000 (18:21 +0200)
commit38a1a29eade4025ee664c4339fff962ca6a04d73
treed9e3249e63d523271959075cef0889923ee8b48d
parentbdb142dad33cd350c880c4dfecc0c69ecb7149af
[PATCH] wallpapers/image: don't crash when removing /usr/share

we delay addSourceModel when the source model is fully loaded,
but it might take a long time (ie adding /usr/share)

if then we remove it before it's done, we will have either an assert or a crash
in qconcatenatetablesmodel (depending if Qt asserts are turned on)

we can safely call addsourceModel immediately, so rowsInserted will be
forwarded as they come in

BUG:503593

(cherry picked from commit f584f1beb3aaafe36c328a761b8eea02b46f20c4)

f584f1be wallpapers/image: don't crash when removing /usr/share

Co-authored-by: Marco Martin <notmart@gmail.com>
Gbp-Pq: Name upstream_e9fd71d9_wallpapers-image-don-t-crash-when-removing-usr-share.patch
wallpapers/image/plugin/slidemodel.cpp