]> cloud.milkyroute.net Git - dolphin.git/commit
Ensure stable sort order when sorting by size
authorChristian Muehlhaeuser <muesli@gmail.com>
Sat, 10 Jul 2021 17:35:26 +0000 (19:35 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Tue, 13 Jul 2021 19:48:41 +0000 (21:48 +0200)
commitbaaf0c29b857997720b9cb0d584a44306963fb97
treec634d47101c64260f97bb3c60020282d07f29e01
parent7e0d3e04ce96ce59caeac8cd5aa970530b55c0ab
Ensure stable sort order when sorting by size

Folders with equal size caused the sort operation to become unstable,
as the result of lessThan was non-deterministic.

We need the fallback mechanisms at the bottom of the function to
resovle the situation and provide a stable sort order.

This also fixes expanding the contents of a folder into the wrong
parent.

BUG: 433247
FIXED-IN: 21.08
src/kitemviews/kfileitemmodel.cpp