diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index f49eb1fa0..752697b34 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -348,13 +348,8 @@ Kirigami.Page { onVisibleChanged: { comboVendor.currentIndex = comboProduct.currentIndex = comboConnection.currentIndex = -1 - if (visible) { - comboVendor.currentIndex = manager.getDetectedVendorIndex() - comboProduct.currentIndex = manager.getDetectedProductIndex(comboVendor.currentText) - comboConnection.currentIndex = manager.getMatchingAddress(comboVendor.currentText, comboProduct.currentText) - manager.DC_vendor = comboVendor.currentText - manager.DC_product = comboProduct.currentText - manager.DC_devName = comboConnection.currentText + if (visible && PrefDiveComputer.vendor !== "" ) { + rememberedDCsGrid.setDC(PrefDiveComputer.vendor1, PrefDiveComputer.product1, PrefDiveComputer.device1) } } } |