]> cloud.milkyroute.net Git - dolphin.git/commit
Slightly refactor count resorting
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 22 Jan 2024 17:33:09 +0000 (18:33 +0100)
committerFelix Ernst <felixernst@kde.org>
Tue, 23 Jan 2024 11:13:00 +0000 (11:13 +0000)
commite817c3246cf512a89a3de003763273f29d9cfe8c
tree7addce2c5685d1792ad9f7f1a777e4fec7211a8e
parenta85302d567bd6fdc1fb8678ce827ed409da73485
Slightly refactor count resorting

The bug fix 8f043b2958477d3fe2ef094b7e42f792f4cf0b02 introduced a
secondary code path to trigger a resort of items. However, the previous
way to trigger it only required a small bug fix to work and gives us a
couple of optimisations for free. This commit removes the secondary code
path and fixes the primary one.

CCBUG: 473999
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kfileitemmodelrolesupdater.cpp