From f26a12d5c6af9e98f398f4414f09e19b52464f63 Mon Sep 17 00:00:00 2001 From: Caroline Chao Date: Thu, 19 Jun 2014 10:11:44 +0200 Subject: Update the source link for the weather data Instead of opening the xml file, open the relative page. Change-Id: I4fadf6d8f6ad5763d57a6c321d21a2ec9f064d00 Reviewed-by: J-P Nurmi --- qml/pages/LongTermPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/pages/LongTermPage.qml b/qml/pages/LongTermPage.qml index 54fa12c..d802df4 100644 --- a/qml/pages/LongTermPage.qml +++ b/qml/pages/LongTermPage.qml @@ -51,7 +51,9 @@ BasicPage { property bool cityLoaded: false - onCityLoadedChanged: updateStatusBar(ApplicationInfo.currentCityModel.copyright + " (source)") + property string sourceLink: ApplicationInfo.currentCityModel.sourceXml.replace(/\/forecast.xml$/, "") + + onCityLoadedChanged: updateStatusBar(ApplicationInfo.currentCityModel.copyright + " (source)") pageComponent: Item { TouchScrollView { -- cgit v1.2.3