@@ -82,11 +82,13 @@ Rectangle {
84 function updateSpreadDelegateFocus() {
84 function updateSpreadDelegateFocus() {
85+ if (priv.focusedAppId) {
85− var focusedAppIndex = priv.indexOf(priv.focusedAppId);
86+ var focusedAppIndex = priv.indexOf(priv.focusedAppId);
86− if (focusedAppIndex !== -1) {
87+ if (focusedAppIndex !== -1) {
87− spreadRepeater.itemAt(focusedAppIndex).focus = true;
88+ spreadRepeater.itemAt(focusedAppIndex).focus = true;
89− console.warn("TabletStage: Failed to find the SpreadDelegate for appID=" + priv.focusedAppId);
90+ console.warn("TabletStage: Failed to find the SpreadDelegate for appID=" + priv.focusedAppId);