on xenial help sign in
fix warning when clicking the panel with no maximized window at all
commite6b9a09a74de44f7e39304b1ca6006ea6550fb1f authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 12 Nov 2015, 14:21 (11 years ago) parenta1ed8bb
1 file changed+3−1
qml/Stages/DesktopStage.qml+3−1
qml/Stages/DesktopStage.qml+3−1
@@ -175,7 +175,9 @@ AbstractStage {
175175 onMinimize: priv.focusedAppDelegate && priv.focusedAppDelegate.minimize();
176176 onMaximize: priv.focusedAppDelegate // don't restore minimized apps when double clicking the panel
177177 && priv.focusedAppDelegate.restoreFromMaximized();
178− onFocusMaximizedApp: ApplicationManager.focusApplication(appRepeater.itemAt(priv.foregroundMaximizedAppIdIndex).appId)
178+ onFocusMaximizedApp: if (priv.foregroundMaximizedAppIdIndex != -1) {
179+ ApplicationManager.focusApplication(appRepeater.itemAt(priv.foregroundMaximizedAppIdIndex).appId);
180+ }
179181 }
180182
181183 Binding {