aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-21 12:14:37 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-21 13:27:49 -0700
commit85560531da8205feca045305843b704f497a3d05 (patch)
treea7ca16a2e4a13c97fb12bb6a639cf8717d78c832 /mobile-widgets
parent68bb49e4ca26d818c5199de0da1002c82281d645 (diff)
downloadsubsurface-85560531da8205feca045305843b704f497a3d05.tar.gz
QML UI: don't exit on iOS
Apparently users interpret that as a crash. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 73bb06a86..e5ce929d2 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -282,9 +282,11 @@ Kirigami.ScrollablePage {
event.accepted = true;
}
if (!startPageWrapper.visible) {
- manager.quit()
- // we shouldn't come back from there, but just in case
- event.accepted = true
+ if (Qt.platform.os != "ios") {
+ manager.quit()
+ // we shouldn't come back from there, but just in case
+ event.accepted = true
+ }
}
}
}