diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2018-02-11 14:27:04 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-03-19 12:01:14 -0700 |
commit | 477d1a35332506024826fe7e9e8a7242a9f98b29 (patch) | |
tree | 3ec1209dc34b749a1c19297b7da70d59a050f628 /mobile-widgets/qml/DiveDetailsEdit.qml | |
parent | 7feb9a3b6e36e548cd84331134c15bf11a046ec9 (diff) | |
download | subsurface-477d1a35332506024826fe7e9e8a7242a9f98b29.tar.gz |
Moblie: remove comparison when saving
Removing the comparison of currentText vs editText when saving buddies
fixes the issue of data loss when dive has more than one buddy.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index ad49f1a7f..2f889c467 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -64,8 +64,7 @@ Item { // 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, - suitBox.currentText != "" ? suitBox.currentText : suitBox.editText, - buddyBox.currentText != "" ? buddyBox.currentText : buddyBox.editText, + suitBox.currentText != "" ? suitBox.currentText : suitBox.editText, buddyBox.editText, divemasterBox.currentText != "" ? divemasterBox.currentText : divemasterBox.editText, detailsEdit.weightText, detailsEdit.notesText, detailsEdit.startpressureText, detailsEdit.endpressureText, detailsEdit.gasmixText, |