summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-10-17 16:22:25 +0200
committerCaroline Chao <caroline.chao@theqtcompany.com>2014-10-22 15:22:38 +0200
commit6d2721d2fa569e33d4cc97d7ea7edbd825be92ee (patch)
tree453b1c6c4fc60f02e6d4cadd545f5f20c0ab062d /qml
parentc0f5fd60919e51e45103b7aa381acff5c99818eb (diff)
Hide menu when poping to previous page on back key
Change-Id: Ib0c7d04efd2df6c32aaf285429c84b0e46ed5bcc Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
Diffstat (limited to 'qml')
-rw-r--r--qml/main.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/qml/main.qml b/qml/main.qml
index f1622f9..2b4fe13 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -239,6 +239,7 @@ ApplicationWindow {
Keys.onReleased: {
if (event.key === Qt.Key_Back) {
if (stack.depth > 1) {
+ menuPicker.visible = false
event.accepted = true
stack.pop()
}