diff options
author | Jocke <j.bygdell@gmail.com> | 2018-09-23 11:44:05 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-09-25 15:34:36 +0200 |
commit | 0a3130cd865f17b38fc54d21ea72b31b0d8e7cd0 (patch) | |
tree | 6053d4e7bc2b8eb4c77a65ef0d4c644487d6b136 /mobile-widgets/qml/DownloadFromDiveComputer.qml | |
parent | c4d6886daf25ed23762cf1811e9a8ae488948993 (diff) | |
download | subsurface-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/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 1 |
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) |