diff options
author | Caroline Chao <caroline.chao@digia.com> | 2014-05-24 08:40:21 +0200 |
---|---|---|
committer | Caroline Chao <caroline.chao@digia.com> | 2014-05-23 08:57:40 +0200 |
commit | caddee314e9ad4f838987ed5fe62d4a36302605e (patch) | |
tree | a4db5fc0d2ecbd3f0cea11b018fd4dfd6797553a /qml/main.qml | |
parent | 37b2f3d29d921626b5ab4586b8f6c4df4bda15ec (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/main.qml')
-rw-r--r-- | qml/main.qml | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/qml/main.qml b/qml/main.qml index 33b8245..ceb87ff 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -54,7 +54,6 @@ ApplicationWindow { property Component citiesPage: CitiesPage { onUpdateStatusBar: statusBarMessage = message onNextPage: if (!isLocked) { - isLocked = true pageView.push(longTermPage) clearSearchBox() } @@ -62,7 +61,6 @@ ApplicationWindow { property Component longTermPage: LongTermPage { onUpdateStatusBar: statusBarMessage = message onNextPage: if (!isLocked) { - isLocked = true pageView.push(oneDayPage) } onPreviousPage: { @@ -73,7 +71,6 @@ ApplicationWindow { property Component oneDayPage: OneDayPage { onUpdateStatusBar: statusBarMessage = message onPreviousPage: if (!isLocked) { - isLocked = true pageView.pop() } } |