diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-07 22:30:58 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-07 22:30:58 -0800 |
commit | 624e44e73ddcec374a67c477e61bac2250de33b5 (patch) | |
tree | 7bcd110e4bec82a257952045f72baad4a0a5e12b /qt-mobile/qml/DiveDetails.qml | |
parent | a0d3480bbe5a14eec43242923657ecbff9f89dbe (diff) | |
download | subsurface-624e44e73ddcec374a67c477e61bac2250de33b5.tar.gz |
QML UI: clean up notes field after edit
We don't want any of the rich text markup to sneak into our fields.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index c464551db..0dd380311 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -80,9 +80,9 @@ MobileComponents.Page { iconName: "document-save" onTriggered: { // apply the changes to the dive_table - manager.commitChanges(dive_id, detailsEdit.dateText, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText, - detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText, - detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText) + notes = manager.commitChanges(dive_id, detailsEdit.dateText, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText, + detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText, + detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText) // apply the changes to the dive detail view date = detailsEdit.dateText location = detailsEdit.locationText @@ -93,7 +93,6 @@ MobileComponents.Page { suit = detailsEdit.suitText buddy = detailsEdit.buddyText divemaster = detailsEdit.divemasterText - notes = detailsEdit.notesText // back to view state and close the drawer diveDetailsWindow.state = "view" contextDrawer.close() |