summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-21 09:46:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-21 13:27:00 -0700
commit1453888e029f3765f3dca7d562ee8ee50bc5f5d2 (patch)
treeb2e44c725fee09ef2a76667126a8246327b9ca3f /mobile-widgets/qml
parentfbea54f8dd6b599da34942a985bff7bb151bc502 (diff)
downloadsubsurface-1453888e029f3765f3dca7d562ee8ee50bc5f5d2.tar.gz
mobile/tripedit: close page after saving
That's consistent with how we do things on other pages. Also hide the on-screen keyboard. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/TripDetails.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qml/TripDetails.qml b/mobile-widgets/qml/TripDetails.qml
index bbf95cf23..ce1ba71dd 100644
--- a/mobile-widgets/qml/TripDetails.qml
+++ b/mobile-widgets/qml/TripDetails.qml
@@ -56,6 +56,8 @@ Kirigami.Page {
onTriggered: {
manager.appendTextToLog("Save trip details triggered")
manager.updateTripDetails(tripId, tripLocationField.text, tripNotesField.text)
+ Qt.inputMethod.hide()
+ pageStack.pop("TripDetails")
}
}
property QtObject cancelAction: Kirigami.Action {