From 0aab39b35dd034a558282ca8ee53e9dfe838e0b9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 18 Sep 2018 07:35:53 +0200 Subject: [PATCH] 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 Signed-off-by: Berthold Stoeger --- mobile-widgets/qml/DiveDetailsEdit.qml | 3 +-- 1 file changed, 1 insertion(+), 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,