psa: fix feeds not showing up in some cases
authorYves <yves@marcoz.org>
Fri, 28 Oct 2011 23:03:40 +0000 (16:03 -0700)
committerYves <yves@marcoz.org>
Fri, 28 Oct 2011 23:03:40 +0000 (16:03 -0700)
psa_harmattan/feedingit/qml/Feeds.qml

index fa6a6c0..2f39cbd 100644 (file)
@@ -8,7 +8,7 @@ Item {
     signal feedClicked(string feedid)
 
     function reload() {
-       feeds.xml = catid == "" ? "" : controller.getFeedsXml(catid);
+       feeds.xml = catid == "" ? "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml></xml>" : controller.getFeedsXml(catid);
         //feeds.reload()
         console.log(feeds.xml)
     }
@@ -27,7 +27,7 @@ Item {
         id: feeds
 
         //source: catid == "" ? "" : "http://localhost:8000/feeds/" + catid //+ "?onlyUnread=" + parent.hideReadArticles
-        xml: catid == "" ? "" : controller.getFeedsXml(catid)
+        xml: catid == "" ? "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml></xml>" : controller.getFeedsXml(catid)
         query: "/xml/feed"
 
         XmlRole { name: "title"; query: "feedname/string()" }