diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-09-18 07:35:53 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-25 09:27:16 -0700 |
commit | 0aab39b35dd034a558282ca8ee53e9dfe838e0b9 (patch) | |
tree | 4b2372d16ae5e2a270b77a613308124e2eb9024e /mobile-widgets | |
parent | 6850e6d567811e94f0c15fd06206b4cc5bbc030c (diff) | |
download | subsurface-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>
Diffstat (limited to 'mobile-widgets')
-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 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, |