]> cloud.milkyroute.net Git - dolphin.git/commit
Make non-empty textual columns come first in sorting
authorNazar Kalinowski <nazark@tutanota.com>
Sun, 1 Sep 2019 15:48:32 +0000 (17:48 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 1 Sep 2019 15:50:25 +0000 (17:50 +0200)
commit7f6d49377b3b66da9811d94aa0166872e4f44836
treed4792f775649ce1f9e17b876070eea7cda96d01e
parenteaec53a7af4e098acd957a274f059920d569e0be
Make non-empty textual columns come first in sorting

Summary:

Current behavior of dolphin in sorting of files with textual columns (e.g. tags) is to show files without this particular textual column (e.g. without tags) first.
This patch changes this behavior so that dolphin shows the files with some value before the files without any value for chosen sorting method.

BUG: 410538

Test Plan:
Sorting by name (isn't affected by the patch): https://i.imgur.com/eqbYwyZ.png
Sorting by textual column ("tags" in this particular example),
old version (non-tagged files and folders come first): https://i.imgur.com/5KLLujU.png
patched version (tagged files and folders come first): https://i.imgur.com/oUAeZ2z.png

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23482
src/kitemviews/kfileitemmodel.cpp