summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-mobile/qml/DiveDetails.qml2
-rw-r--r--qt-mobile/qml/DiveDetailsEdit.qml1
2 files changed, 3 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index bf07d4571..aab113eef 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -49,10 +49,12 @@ MobileComponents.Page {
if (state === "edit") {
// just cancel the edit state
state = "view"
+ Qt.inputMethod.hide()
} else if (state === "add") {
// edit was canceled - so remove the dive from the dive list
manager.addDiveAborted(dive_id)
state = "view"
+ Qt.inputMethod.hide()
} else {
// set things up for editing - so make sure that the detailsEdit has
// all the right data (using the property aliases set up above)
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml
index 0ae674681..3acf8ba98 100644
--- a/qt-mobile/qml/DiveDetailsEdit.qml
+++ b/qt-mobile/qml/DiveDetailsEdit.qml
@@ -183,6 +183,7 @@ Item {
diveDetailsListView.currentItem.modelData.divemaster = detailsEdit.divemasterText
diveDetailsListView.currentItem.modelData.notes = detailsEdit.notesText
diveDetailsPage.state = "view"
+ Qt.inputMethod.hide()
}
}
Item {