qmlscene: don't call show() on the window if it's already showing

That way Component.onCompleted() can optionally do showMaximized()
without being overridden.

Task-number: QTBUG-31260
Change-Id: I6f5c3025efd3b38809be85da4172241695168a6c
Reviewed-by: Nikita Krupenko <krnekit@gmail.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
This commit is contained in:
Shawn Rutledge 2013-05-22 15:17:56 +02:00 committed by The Qt Project
parent 2f988d4b65
commit 04d4664167
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ int main(int argc, char ** argv)
window->showFullScreen();
else if (options.maximized)
window->showMaximized();
else
else if (!window->isVisible())
window->show();
}