on xenial help sign in
fix startup of non rotatesWindowContents apps
b3f04a9Albert Astals Cid
qml/Stages/DesktopStage.qml+5−1
@@ -362,7 +362,11 @@ AbstractStage {
362 }
362 }
363 }
363 }
364 Component.onCompleted: {
364 Component.onCompleted: {
365+ if (application && application.rotatesWindowContents) {
365− decoratedWindow.surfaceOrientationAngle = shellOrientationAngle;
366+ decoratedWindow.surfaceOrientationAngle = shellOrientationAngle;
367+ } else {
368+ decoratedWindow.surfaceOrientationAngle = 0;
369+ }
366
370
367 // NB: We're differentiating if this delegate was created in response to a new entry in the model
371 // NB: We're differentiating if this delegate was created in response to a new entry in the model
368 // or if the Repeater is just populating itself with delegates to match the model it received.
372 // or if the Repeater is just populating itself with delegates to match the model it received.