Diffusion Juk dc3124e40b73

Force sorting on so that special playlist sort to top.

Authored by mpyne on Dec 22 2018, 12:29 AM.

Description

Force sorting on so that special playlist sort to top.

That is, so that special playlists hopefully sort to the top. Although
the sorting of special playlists (Collection List, Play Queue, etc.) has
worked for me since the port to KF5, I have a good report that it
doesn't for others.

The code itself appears correct but reviewing the Qt documentation
indicates that QTreeWidget (which is one of the base classes for the
list of playlists) doesn't sort by default.

If QTreeWidget doesn't sort, then the comparison function might not be
getting called at all, which would make it accident that it seems to
work for me.

CCBUG:402398

Details

Committed
mpyneDec 22 2018, 12:29 AM
Parents
R344:f9721878bd29: Fix the "Show Columns" menu to show correct state on startup.
Branches
Unknown
Tags
Unknown