diff --git a/ui/imports/shared/controls/AccountSelector.qml b/ui/imports/shared/controls/AccountSelector.qml index 10be7606f2..4cc4585b99 100644 --- a/ui/imports/shared/controls/AccountSelector.qml +++ b/ui/imports/shared/controls/AccountSelector.qml @@ -122,6 +122,11 @@ StatusComboBox { sourceModel: root.model ?? null key: "address" value: d.currentAccountSelection + onAvailableChanged: { + if (!available) { + d.resetSelection() + } + } } QtObject { @@ -131,6 +136,15 @@ StatusComboBox { Binding on currentAccountSelection { value: root.selectedAddress || root.currentValue } + + function resetSelection() { + currentAccountSelection = "" + } + } + + Component.onCompleted: { + if (!selectedEntry.available) + d.resetSelection() } }