@@ -67,7 +67,7 @@ AbstractStage {
67 case "stagedWithSideStage":
67 case "stagedWithSideStage":
68 var orientations = mainApp.supportedOrientations;
68 var orientations = mainApp.supportedOrientations;
69 orientations |= Qt.LandscapeOrientation | Qt.InvertedLandscapeOrientation;
69 orientations |= Qt.LandscapeOrientation | Qt.InvertedLandscapeOrientation;
70− if (priv.sideStageItemId && !spreadView.surfaceDragging) {
70+ if (priv.sideStageItemId) {
71 // If we have a sidestage app, support Portrait orientation
71 // If we have a sidestage app, support Portrait orientation
72 // so that it will switch the sidestage app to mainstage on rotate to portrait
72 // so that it will switch the sidestage app to mainstage on rotate to portrait
73 orientations |= Qt.PortraitOrientation|Qt.InvertedPortraitOrientation;
73 orientations |= Qt.PortraitOrientation|Qt.InvertedPortraitOrientation;
@@ -261,7 +261,7 @@ AbstractStage {
262 if (mainStageIndex == 0 || sideStageIndex == 0) {
262 if (mainStageIndex == 0 || sideStageIndex == 0) {
263 if (mainStageIndex == 1 || sideStageIndex == 1) {
263 if (mainStageIndex == 1 || sideStageIndex == 1) {
264− return 2;
264+ return topLevelSurfaceList.count > 2 ? 2 : -1;
266 return 1;
266 return 1;
@@ -503,7 +503,7 @@ AbstractStage {
503 return 1;
503 return 1;
506− return 2;
506+ return 1;
509 onShownChanged: {
509 onShownChanged: {