Commit 9dd929c3 authored by Nicolas Fella's avatar Nicolas Fella Committed by Nate Graham
Browse files

[kcm] Update device combobox when current device changes externally

Otherwise changing the device from e.g. the applet doesn't update the
running KCM


(cherry picked from commit 1729c76d)
parent 0bfd732b
Pipeline #143450 passed with stage
in 51 seconds
......@@ -13,7 +13,13 @@ ComboBox {
textRole: "Description"
valueRole: "Index"
property int deviceIndex: DeviceIndex
onActivated: DeviceIndex = currentValue
onDeviceIndexChanged: {
currentIndex = indexOfValue(DeviceIndex)
}
Component.onCompleted: currentIndex = indexOfValue(DeviceIndex)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment