Skip to content

KFileModel: Let Sort dir first affect size sorting

Méven Car requested to merge (removed):bug-433207 into master

BUG: 433207

cc @ngraham @elvisangelaccio

Before in LessThan, as soon as we were sorting by size, the "directory first" sorting was forced.

This was because not so long ago directories could only have "items counts" as their size, which was not comparable to byte size.

This patch lift this limitation when the directory size is in byte, it is used to compare its size to files when sorting by size.

Edited by Méven Car

Merge request reports

Loading