diff options
author | Rafael Brandao <rafael.lobo@openbossa.org> | 2012-04-25 16:20:14 -0300 |
---|---|---|
committer | Rafael Brandao <rafael.lobo@openbossa.org> | 2012-04-25 16:36:47 -0300 |
commit | 69d9b7e10d69816c5604be65bd8850a2512a8eaf (patch) | |
tree | 7b530a768e161c988a37010688096c230176b8c6 | |
parent | caafcaf1b0533ccfaf13c00d21cc63ea74f29a65 (diff) |
Prevent "cancel" to return to the same screen
This bug could be reproduced if you start to press cancel
and plus button alternately very fast.
Reviewed-by: Alexis Menard
-rw-r--r-- | src/mobile/qml/Main.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mobile/qml/Main.qml b/src/mobile/qml/Main.qml index 71f557c..0e12c97 100644 --- a/src/mobile/qml/Main.qml +++ b/src/mobile/qml/Main.qml @@ -106,7 +106,8 @@ Rectangle { function _show() { text = shouldOpenNewTab ? "" : navigationPanel.url; - rootPage.previousState = rootPage.state; + if (rootPage.state !== "typeNewUrl") + rootPage.previousState = rootPage.state; rootPage.state = "typeNewUrl"; } |