]> cloud.milkyroute.net Git - dolphin.git/commit
Only do a fast pre-sorting when "Sort by Name" is used
authorFrank Reininghaus <frank78ac@googlemail.com>
Tue, 5 Nov 2013 07:44:31 +0000 (08:44 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Tue, 5 Nov 2013 07:44:31 +0000 (08:44 +0100)
commit971aa6766576b3ca54e2b8539a396fe54f676155
tree5b1b15c8289b76a582e5e677287c7b1d91ce254b
parentfc2ab478989fb4effc14c06aa56fdb29d3143b35
Only do a fast pre-sorting when "Sort by Name" is used

This is a follow-up to commit 0e9f4a398735cfc19ae783d2ab054d2400d95416,
which tries to speed up sorting the items naturally by their name using
the idea that a fast non-natural pre-sorting already sorts the items
mostly correctly and thus reduces the number of expensive natural
comparisons.

This change only makes sense if the view is really sorted by "Name". In
other cases, the pre-sorting will most likely not be useful.

Thanks to Christoph Feck for pointing this out!
src/kitemviews/kfileitemmodel.cpp