diff --git a/applets/notifications/package/contents/ui/FullRepresentation.qml b/applets/notifications/package/contents/ui/FullRepresentation.qml --- a/applets/notifications/package/contents/ui/FullRepresentation.qml +++ b/applets/notifications/package/contents/ui/FullRepresentation.qml @@ -377,11 +377,12 @@ remove: Transition { id: removeTransition ParallelAnimation { - NumberAnimation { property: "opacity"; to: 0; duration: units.longDuration } + NumberAnimation { property: "opacity"; to: 0; duration: 2000}//units.longDuration } NumberAnimation { + id: removeXAnimation property: "x" - to: removeTransition.ViewTransition.item.x >= 0 ? list.width : -list.width - duration: units.longDuration + to: list.width + duration: 2000//units.longDuration } } } @@ -404,7 +405,16 @@ draggable: !model.isGroup && model.type != NotificationManager.Notifications.JobType - onDismissRequested: historyModel.close(historyModel.index(index, 0)); + onDismissRequested: { + // Setting the animation target explicitly before removing the notification: + // Using ViewTransition.item.x to get the x position in the animation + // causes random crash in attached property access (cf. Bug 414066) + if (x < 0) { + removeXAnimation.to = -list.width; + } + + historyModel.close(historyModel.index(index, 0)); + } Loader { id: delegateLoader