mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
7feb9a3b6e
commit
477d1a3533
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue