summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Brandao <rafael.lobo@openbossa.org>2012-04-25 16:20:14 -0300
committerRafael Brandao <rafael.lobo@openbossa.org>2012-04-25 16:36:47 -0300
commit69d9b7e10d69816c5604be65bd8850a2512a8eaf (patch)
tree7b530a768e161c988a37010688096c230176b8c6
parentcaafcaf1b0533ccfaf13c00d21cc63ea74f29a65 (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.qml3
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";
}