Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort tracks/artist/albums and genres correctly in mythmusic playlist …

…editor
  • Loading branch information...
commit 55751e65b97391de025cc79f74e181da33e2ae26 1 parent 4b66f82
@stuartm stuartm authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 mythplugins/mythmusic/mythmusic/playlisteditorview.cpp
View
11 mythplugins/mythmusic/mythmusic/playlisteditorview.cpp
@@ -883,6 +883,8 @@ void PlaylistEditorView::filterTracks(MusicGenericTree *node)
newnode->setCheck( hasTrack ? MythUIButtonListItem::FullChecked : MythUIButtonListItem::NotChecked);
++i;
}
+
+ node->sortByString(); // Case-insensitive sort
}
else if (node->getAction() == "artists")
{
@@ -915,6 +917,8 @@ void PlaylistEditorView::filterTracks(MusicGenericTree *node)
newnode->SetData(qVariantFromValue(i.value()));
++i;
}
+
+ node->sortByString(); // Case-insensitive sort
}
else if (node->getAction() == "compartists")
{
@@ -950,6 +954,8 @@ void PlaylistEditorView::filterTracks(MusicGenericTree *node)
newnode->SetData(qVariantFromValue(i.value()));
++i;
}
+
+ node->sortByString(); // Case-insensitive sort
}
else if (node->getAction() == "albums")
{
@@ -982,7 +988,8 @@ void PlaylistEditorView::filterTracks(MusicGenericTree *node)
newnode->SetData(qVariantFromValue(i.value()));
++i;
}
-
+
+ node->sortByString(); // Case-insensitive sort
}
else if (node->getAction() == "genres")
{
@@ -1015,6 +1022,8 @@ void PlaylistEditorView::filterTracks(MusicGenericTree *node)
newnode->SetData(qVariantFromValue(i.value()));
++i;
}
+
+ node->sortByString(); // Case-insensitive sort
}
else if (node->getAction() == "ratings")
{
Please sign in to comment.
Something went wrong with that request. Please try again.