on xenial help sign in
Set the playlist at the beginning

There seems to be a ¿bug? in the playlist code in which adding sources to a plyalist that doesn't belong to a player does nothing So we can just workaround it, with the same result as before that i can see

commitebd6bee699d712d270ad0f38ba8811677ea7a728 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 11 Aug 2015, 17:47 (11 years ago) parent81a3d3b
1 file changed+3−1
plugins/Dash/DashAudioPlayer.qml+3−1
plugins/Dash/DashAudioPlayer.qml+3−1
@@ -44,6 +44,8 @@ QtObject {
4444 audio.playlist = null;
4545 if (newPlaylist) {
4646 playlist.clear();
47+ audio.playlist = playlist;
48+
4749 // Look for newSource in newPlaylist
4850 var sourceIndex = -1;
4951 for (var i in newPlaylist) {
@@ -61,7 +63,6 @@ QtObject {
6163 playlist.addSource(newPlaylist[i]);
6264 }
6365 playlist.currentIndex = sourceIndex;
64− audio.playlist = playlist;
6566 } else {
6667 audio.source = newSource;
6768 }
@@ -69,6 +70,7 @@ QtObject {
6970 }
7071
7172 function stop() {
73+console.log("STop2");
7274 audio.stop();
7375 }
7476