File 0001-QDeclarativeRepeaterCrashFix_kde#311871.patch of Package kdebase4-workspace

diff --git a/plasma/generic/applets/notifications/contents/ui/NotificationDelegate/NotificationDelegate.qml b/plasma/generic/applets/notifications/contents/ui/NotificationDelegate/NotificationDelegate.qml
index bf33eb1..db4e280 100644
--- a/plasma/generic/applets/notifications/contents/ui/NotificationDelegate/NotificationDelegate.qml
+++ b/plasma/generic/applets/notifications/contents/ui/NotificationDelegate/NotificationDelegate.qml
@@ -44,7 +44,8 @@ PlasmaComponents.ListItem {
         repeat: false
         running: !idleTimeSource.idle
         onTriggered: {
-            notificationsModel.remove(index)
+            if (!notificationsModel.inserting)
+                notificationsModel.remove(index)
         }
     }
 
diff --git a/plasma/generic/applets/notifications/contents/ui/Notifications.qml b/plasma/generic/applets/notifications/contents/ui/Notifications.qml
index 114ead2..1aea0eb 100644
--- a/plasma/generic/applets/notifications/contents/ui/Notifications.qml
+++ b/plasma/generic/applets/notifications/contents/ui/Notifications.qml
@@ -50,7 +50,9 @@ Column {
                 "expireTimeout": expireTimeout,
                 "urgency" : urgency,
                 "actions" : actions}
+        notificationsModel.inserting = true;
         notificationsModel.insert(0, notification);
+        notificationsModel.inserting = false;
         if (plasmoid.popupShowing) {
             return
         }
@@ -83,6 +85,7 @@ Column {
 
     ListModel {
         id: notificationsModel
+        property bool inserting: false;
     }
     ListModel {
         id: allApplicationsModel
openSUSE Build Service is sponsored by