Skip to content

Commit

Permalink
If no items in StackView let Android accept the event
Browse files Browse the repository at this point in the history
  • Loading branch information
Iktwo committed Oct 5, 2014
1 parent e10d26d commit 18c8504
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ ApplicationWindow {
Keys.onBackPressed: {
if (stackView.depth > 1)
stackView.pop()
else
event.accepted = false
}
}

Expand Down

0 comments on commit 18c8504

Please sign in to comment.