summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-06-19 10:11:44 +0200
committerCaroline Chao <caroline.chao@digia.com>2014-06-23 09:23:50 +0200
commitf26a12d5c6af9e98f398f4414f09e19b52464f63 (patch)
treef66d60857cdf3112513dbd5e948e635372a901c4
parent0195e6ede8fd3078f60a7dea96f0fa4ed4a46abc (diff)
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 <jpnurmi@digia.com>
-rw-r--r--qml/pages/LongTermPage.qml4
1 files changed, 3 insertions, 1 deletions
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 + " <a href=" + ApplicationInfo.currentCityModel.sourceXml + "\>(source)")
+ property string sourceLink: ApplicationInfo.currentCityModel.sourceXml.replace(/\/forecast.xml$/, "")
+
+ onCityLoadedChanged: updateStatusBar(ApplicationInfo.currentCityModel.copyright + " <a href=" + sourceLink + "\>(source)")
pageComponent: Item {
TouchScrollView {