diff options
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r-- | src/gui/kernel/qwindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index deb8613056..12ea4df1c9 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -956,11 +956,9 @@ void QWindow::reportContentOrientationChange(Qt::ScreenOrientation orientation) Q_D(QWindow); if (d->contentOrientation == orientation) return; - if (!d->platformWindow) - create(); - Q_ASSERT(d->platformWindow); + if (d->platformWindow) + d->platformWindow->handleContentOrientationChange(orientation); d->contentOrientation = orientation; - d->platformWindow->handleContentOrientationChange(orientation); emit contentOrientationChanged(orientation); } |