Verified Commit 0c8d87f9 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[kwineffects] Fix wrong object being passed as a QQuickItem* context

Without this patch the following warning is issued:

    Could not convert argument 1 at
        onTriggered@file:///usr/share/kpackage/kcms/kcm_kwin_effects/contents/ui/Effect.qml:129
        onClicked@file:///usr/lib/qml/org/kde/kirigami.2/templates/SwipeListItem.qml:485
    Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated.
    This will throw a JavaScript TypeError in future releases of Qt!
parent d7fd53e9
Pipeline #204281 failed with stage
in 27 minutes and 28 seconds
......@@ -126,7 +126,7 @@ Kirigami.SwipeListItem {
enabled: model.StatusRole != Qt.Unchecked
icon.name: "configure"
tooltip: i18nc("@info:tooltip", "Configure...")
onTriggered: kcm.configure(model.ServiceNameRole, this)
onTriggered: kcm.configure(model.ServiceNameRole, listItem)
}
]
}
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