From 0a3130cd865f17b38fc54d21ea72b31b0d8e7cd0 Mon Sep 17 00:00:00 2001 From: Jocke Date: Sun, 23 Sep 2018 11:44:05 +0200 Subject: 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 --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets') 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) -- cgit v1.2.3-70-g09d2