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>
This commit is contained in:
Jocke 2018-09-23 11:44:05 +02:00 committed by Jan Mulder
parent c4d6886daf
commit 0a3130cd86

View file

@ -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)