Commit a39dc6dc authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Show menu instead of triggering default action when clicking on

KSMButton.qml's icon in shutdown dialog.

CCBUG: 304907
parent fc555438
......@@ -163,6 +163,19 @@ PlasmaCore.FrameSvgItem {
right: parent.right
rightMargin: 4
}
MouseArea {
z: 10
anchors.fill: parent
onClicked: {
button.focus = true
if (menu) {
button.pressAndHold()
} else {
button.clicked()
}
}
}
}
Component.onCompleted: {
......@@ -210,6 +223,7 @@ PlasmaCore.FrameSvgItem {
MouseArea {
id: mouseArea
z: -10
anchors.fill: parent
hoverEnabled: true
onClicked: {
......
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