@@ -54,14 +54,16 @@ QtObject {
57 if (sourceIndex === -1 && newSource != "") {
58 if (sourceIndex === -1 && newSource != "") {
58 // If the playing song is not in the playlist, add it
59 // If the playing song is not in the playlist, add it
59− playlist.addSource(newSource);
60+ urls.push(newSource);
60 sourceIndex = 0;
61 sourceIndex = 0;
62 for (var i in newPlaylist) {
63 for (var i in newPlaylist) {
63− playlist.addSource(newPlaylist[i]);
64+ urls.push(newPlaylist[i]);
66+ playlist.addSources(urls);
65 playlist.currentIndex = sourceIndex;
67 playlist.currentIndex = sourceIndex;
67 audio.source = newSource;
69 audio.source = newSource;