Commit dc3124e4 authored by Michael Pyne's avatar Michael Pyne

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.

parent f9721878
......@@ -76,6 +76,7 @@ PlaylistBox::PlaylistBox(PlayerManager *player, QWidget *parent, QStackedWidget
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment