@@ -27,6 +27,8 @@ ListView {
2727 property real margin
2828 spacing: delegate.fullscreen ? 0 : units.gu(.5)
2929
30+ currentIndex: (currentIndex < 1 && count > 1) ? 1 : undefined
31+
3032 delegate: Notification {
3133 objectName: "notification" + index
3234 anchors {
@@ -44,12 +46,6 @@ ListView {
4446 notification: notificationList.model.getRaw(notificationId)
4547 maxHeight: notificationList.height
4648 margins: notificationList.margin
47−
48− ListView.onAdd: {
49− if (notificationList.currentIndex < 1 && notificationList.count > 1) {
50− notificationList.currentIndex = 1
51− }
52− }
5349
5450 // make sure there's no opacity-difference between the several
5551 // elements in a notification