]> cloud.milkyroute.net Git - dolphin.git/commit
Do not sort twice when changing role and order at the same time
authorThomas Surrel <thomas.surrel@protonmail.com>
Thu, 22 Nov 2018 21:24:37 +0000 (22:24 +0100)
committerThomas Surrel <thomas.surrel@protonmail.com>
Sat, 1 Dec 2018 20:07:29 +0000 (21:07 +0100)
commitb714604a6795f9ed398a886c23348a2d52fbb7d1
tree18f534ab8e1a84a80192c15e3ba794daeb401351
parentd0cfe1e658efc2de7269ed1568143dc1070fa556
Do not sort twice when changing role and order at the same time

Summary:
When using the list header to change the role and order, if one
changes the order to descending and then changes role, dolphin
also changes the order back to ascending. This results in sorting
the list of files twice in a row. This patch removes the first
(useless) sort.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17111
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kitemmodelbase.cpp
src/kitemviews/kitemmodelbase.h
src/kitemviews/private/kitemlistheaderwidget.cpp