summaryrefslogtreecommitdiffstats
path: root/qml/pages/LongTermPage.qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-05-24 08:40:21 +0200
committerCaroline Chao <caroline.chao@digia.com>2014-05-23 08:57:40 +0200
commitcaddee314e9ad4f838987ed5fe62d4a36302605e (patch)
treea4db5fc0d2ecbd3f0cea11b018fd4dfd6797553a /qml/pages/LongTermPage.qml
parent37b2f3d29d921626b5ab4586b8f6c4df4bda15ec (diff)
Simplify the "isLocked" logic for the pages
Use a binding instead. Change-Id: If302c9a5fa7f4b37d1be1fbbbf4771e327d2c26f Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Diffstat (limited to 'qml/pages/LongTermPage.qml')
-rw-r--r--qml/pages/LongTermPage.qml5
1 files changed, 0 insertions, 5 deletions
diff --git a/qml/pages/LongTermPage.qml b/qml/pages/LongTermPage.qml
index 490543d..54fa12c 100644
--- a/qml/pages/LongTermPage.qml
+++ b/qml/pages/LongTermPage.qml
@@ -53,8 +53,6 @@ BasicPage {
onCityLoadedChanged: updateStatusBar(ApplicationInfo.currentCityModel.copyright + " <a href=" + ApplicationInfo.currentCityModel.sourceXml + "\>(source)")
- isLocked: true
-
pageComponent: Item {
TouchScrollView {
id: scrollview
@@ -147,7 +145,6 @@ BasicPage {
target: ApplicationInfo.currentCityModel
onError: {
cityLoaded = false
- isLocked = false
previousPage()
updateStatusBar(errorMessage)
}
@@ -157,13 +154,11 @@ BasicPage {
WeatherModel {
id: weathermodel
onShowLongTerm: {
- isLocked = false
cityLoaded = true
}
onError: {
cityLoaded = false
lastLoadedCity = ""
- isLocked = false
previousPage()
updateStatusBar(qsTr("Problem loading the data: ") + errorMessage)
}