Commit ccad4537 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kded] Fix selecting OSD action by keyboard

We need to pass the action id instead of the button's action object

BUG: 432481
(cherry picked from commit 3a788c8d)
parent fd57c73b
......@@ -54,13 +54,15 @@ PlasmaCore.Dialog {
})
}
delegate: PlasmaComponents.Button {
property int actionId: modelData.action
Accessible.name: modelData.label
icon.name: modelData.iconSource
icon.height: PlasmaCore.Units.gridUnit * 8
icon.width: PlasmaCore.Units.gridUnit * 8
onClicked: root.clicked(modelData.action)
onClicked: root.clicked(actionId)
onHoveredChanged: {
actionRepeater.currentIndex = index
}
......@@ -104,7 +106,7 @@ PlasmaCore.Dialog {
switch (event.key) {
case Qt.Key_Return:
case Qt.Key_Enter:
clicked(actionRepeater.itemAt(actionRepeater.currentIndex).action)
clicked(actionRepeater.itemAt(actionRepeater.currentIndex).actionId)
break
case Qt.Key_Right:
move(1)
......
Markdown is supported
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