From: druid23 Date: Tue, 17 Aug 2010 01:25:12 +0000 (+0100) Subject: Fixed playlist detection for international servers. X-Git-Tag: v0.5~46 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=018f430ef46c5eb2aaa1634686d54ce281e124ad;p=vlc-remote Fixed playlist detection for international servers. modified: playlistmainwindow.cpp --- diff --git a/playlistmainwindow.cpp b/playlistmainwindow.cpp index 8ba4412..8b1729a 100644 --- a/playlistmainwindow.cpp +++ b/playlistmainwindow.cpp @@ -165,7 +165,8 @@ void PlayListMainWindow::parseXmlPlayList() { for (int idx = 0; idx < ct; ++idx) { QDomNode node = nodes.at(idx); QString name = node.attributes().namedItem("name").nodeValue(); - if (0 == QString::compare("Playlist", name)) { + int id = node.attributes().namedItem("id").nodeValue().toInt(); + if (3 == id) { // got the main playlist, let's build it up if (node.hasChildNodes()) { QDomNodeList leafs = node.childNodes();