@@ -54,14 +54,16 @@ QtObject {
5454 break;
5555 }
5656 }
57+ var urls = [];
5758 if (sourceIndex === -1 && newSource != "") {
5859 // If the playing song is not in the playlist, add it
59− playlist.addSource(newSource);
60+ urls.push(newSource);
6061 sourceIndex = 0;
6162 }
6263 for (var i in newPlaylist) {
63− playlist.addSource(newPlaylist[i]);
64+ urls.push(newPlaylist[i]);
6465 }
66+ playlist.addSources(urls);
6567 playlist.currentIndex = sourceIndex;
6668 } else {
6769 audio.source = newSource;