┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.h
diff options
context:
space:
mode:
authorAkseli Lahtinen <[email protected]>2023-12-15 13:07:12 +0000
committerMéven Car <[email protected]>2023-12-15 13:07:12 +0000
commit8f043b2958477d3fe2ef094b7e42f792f4cf0b02 (patch)
tree515860f427da0b4783811abda5ae2d43e999d0f2 /src/kitemviews/kfileitemmodel.h
parentd98037745fe6b5efbe9b145da7d20fa2f731b6a6 (diff)
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
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
-rw-r--r--src/kitemviews/kfileitemmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h
index 3c2721d8f..f87d2d543 100644
--- a/src/kitemviews/kfileitemmodel.h
+++ b/src/kitemviews/kfileitemmodel.h
@@ -205,6 +205,8 @@ public:
/** set to true to hide application/x-trash files */
void setShowTrashMime(bool show);
+ void scheduleResortAllItems();
+
Q_SIGNALS:
/**
* Is emitted if the loading of a directory has been started. It is