summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-18 07:35:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-25 09:27:16 -0700
commit0aab39b35dd034a558282ca8ee53e9dfe838e0b9 (patch)
tree4b2372d16ae5e2a270b77a613308124e2eb9024e
parent6850e6d567811e94f0c15fd06206b4cc5bbc030c (diff)
downloadsubsurface-0aab39b35dd034a558282ca8ee53e9dfe838e0b9.tar.gz
Mobile: use editText instead of currentText in Suit and DiveMaster boxes
A user reported problems with editing the Suit and DiveMaster fields. Apparently, editing does not change the currentText. Without doing a deeper analysis, simply use editText (a more proper fix might be changing the currentIndex on editing). (Parially?) fixes #1694 Reported-by: Mark Powell <mcpowell123@gmail.com> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index 2faa62d22..d9be64f77 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -110,8 +110,7 @@ Item {
// apply the changes to the dive_table
manager.commitChanges(dive_id, detailsEdit.dateText, locationBox.editText, detailsEdit.gpsText, detailsEdit.durationText,
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText,
- suitBox.currentText != "" ? suitBox.currentText : suitBox.editText, buddyBox.editText,
- divemasterBox.currentText != "" ? divemasterBox.currentText : divemasterBox.editText,
+ suitBox.editText, buddyBox.editText, divemasterBox.editText,
detailsEdit.weightText, detailsEdit.notesText, startpressure,
endpressure, usedGas, usedCyl ,
detailsEdit.rating,