@@ -117,8 +117,10 @@ Rectangle {
118 readonly property int firstSpreadIndex: root.focusFirstApp ? 1 : 0
118 readonly property int firstSpreadIndex: root.focusFirstApp ? 1 : 0
119 property string focusedAppId: applicationManager.focusedApplicationId
119 property string focusedAppId: applicationManager.focusedApplicationId
120− readonly property int focusedAppIndex: indexOf(focusedAppId)
120+ readonly property var focusedAppDelegate: {
121+ var index = indexOf(focusedAppId);
121− readonly property var focusedAppDelegate: focusedAppId && spreadRepeater.count > focusedAppIndex ? spreadRepeater.itemAt(focusedAppIndex) : null
122+ return index >= 0 && index < spreadRepeater.count ? spreadRepeater.itemAt(index) : null
123 property real oldInverseProgress: 0
125 property real oldInverseProgress: 0
124 property bool animateX: false
126 property bool animateX: false