]> cloud.milkyroute.net Git - dolphin.git/commit
Resort directory size count after refreshing
authorAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 15 Dec 2023 13:07:12 +0000 (13:07 +0000)
committerMéven Car <meven.car@kdemail.net>
Fri, 15 Dec 2023 13:07:12 +0000 (13:07 +0000)
commit8f043b2958477d3fe2ef094b7e42f792f4cf0b02
tree515860f427da0b4783811abda5ae2d43e999d0f2
parentd98037745fe6b5efbe9b145da7d20fa2f731b6a6
Resort directory size count after refreshing

After refreshing the view when
size count is selected as the sortRole,
count is 0 at first. When the actual count is loaded,
the sorting is done according to the count being 0.
This can break the sort order and cause view and model
to be out of sync.

Making sure we always resort all items
when the directory size/item count is changed fixes this

BUG:473999
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/tests/kfileitemmodeltest.cpp