Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 426d27e1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix cancel button

Use QQC2.Action with QQC2 controls.
parent 4d5c1618
......@@ -27,12 +27,15 @@ ConditionalLoader
enabled: !listener.isActive
readonly property QtObject cancelAction: Kirigami.Action {
text: i18n("Cancel") "dialog-cancel"
readonly property QtObject cancelAction: KirigamiActionBridge {
Action {
id: cancelQQCAction
text: i18n("Cancel") "dialog-cancel"
enabled: listener.isCancellable
onTriggered: listener.cancel()
visible: listener.isActive
enabled: listener.isCancellable
onTriggered: listener.cancel()
function click() {
......@@ -50,7 +53,7 @@ ConditionalLoader
componentTrue: RowLayout {
ToolButton {
Layout.fillHeight: true
action: root.cancelAction
action: cancelQQCAction
LabelBackground {
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