Notifications: Check for mouse being null in DraggableDelegate

"mouse" can be null if a click was faked by the SelectableLabel
when clicking on the notification body text.
wilder-5.26
Kai Uwe Broulik 4 years ago
parent 2c078334a2
commit 39989a5720
  1. 3
      applets/notifications/package/contents/ui/NotificationPopup.qml

@ -170,7 +170,8 @@ PlasmaCore.Dialog {
}
onClicked: {
if (mouse.button === Qt.MiddleButton) {
// NOTE "mouse" can be null when faked by the SelectableLabel
if (mouse && mouse.button === Qt.MiddleButton) {
if (notificationItem.closable) {
notificationItem.closeClicked();
}

Loading…
Cancel
Save