- onPlaylistChanged: {
- playlist_model.clear();
-
- for (var i = 0; i < playlist.list.length; i++) {
- var item = playlist.list[i]
-
- playlist_model.append({ "index": item.index, "artist": item.artist ? item.artist : '', "title": item.title ? item.title : '' })
-
- if (item.selected) {
- playlistview.currentIndex = i
- }
- }
- }
-