[Notifications] Don't invoke default action on drag if we're dragging

Otherwise dragging a screenshot off a notification will immediately
trigger the default action.
wilder-5.26
Kai Uwe Broulik 4 years ago
parent bf4dd63531
commit eaa44eb88f
  1. 2
      applets/notifications/package/contents/ui/NotificationPopup.qml

@ -117,7 +117,7 @@ PlasmaCore.Dialog {
DropArea { DropArea {
anchors.fill: parent anchors.fill: parent
onEntered: { onEntered: {
if (notificationPopup.hasDefaultAction) { if (notificationPopup.hasDefaultAction && !notificationItem.dragging) {
dragActivationTimer.start(); dragActivationTimer.start();
} else { } else {
drag.accepted = false; drag.accepted = false;

Loading…
Cancel
Save