[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 {
anchors.fill: parent
onEntered: {
if (notificationPopup.hasDefaultAction) {
if (notificationPopup.hasDefaultAction && !notificationItem.dragging) {
dragActivationTimer.start();
} else {
drag.accepted = false;

Loading…
Cancel
Save