aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Jocke <j.bygdell@gmail.com>2018-09-23 11:44:05 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-09-25 15:34:36 +0200
commit0a3130cd865f17b38fc54d21ea72b31b0d8e7cd0 (patch)
tree6053d4e7bc2b8eb4c77a65ef0d4c644487d6b136 /mobile-widgets/qml
parentc4d6886daf25ed23762cf1811e9a8ae488948993 (diff)
downloadsubsurface-0a3130cd865f17b38fc54d21ea72b31b0d8e7cd0.tar.gz
Mobile/downloadDC: always start with empty index
To prevent stale data being visible always set the combobox indexes to -1 Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index b12fb7cb2..f49eb1fa0 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -347,6 +347,7 @@ Kirigami.Page {
}
onVisibleChanged: {
+ comboVendor.currentIndex = comboProduct.currentIndex = comboConnection.currentIndex = -1
if (visible) {
comboVendor.currentIndex = manager.getDetectedVendorIndex()
comboProduct.currentIndex = manager.getDetectedProductIndex(comboVendor.currentText)