Do not sort twice when changing role and order at the same time

Authored by thsurrel on Nov 22 2018, 9:24 PM.

Description

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

Details

Committed
thsurrelDec 1 2018, 8:07 PM
Reviewer
Dolphin
Differential Revision
D17111: Do not sort twice when changing role and order at the same time
Parents
R318:d0cfe1e658ef: Use isEmpty here too
Branches
Unknown
Tags
Unknown