QNX: Don't crash because the window hasn't been initialized yet.
authorSergio Martins <sergio.martins.qnx@kdab.com>
Thu, 3 Jan 2013 10:34:38 +0000 (10:34 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 3 Jan 2013 17:19:28 +0000 (18:19 +0100)
commit00b0dff93f77bed09687b876777bbf0cb4d6bfff
tree0df0278d49f57b3b2d11596368d4132153064a75
parent8e3d4f5e8752c035036a00c85b5dccc2676e82da
QNX: Don't crash because the window hasn't been initialized yet.

Don't call window->handle() inside the backingstore ctor, because
we might still have the window ctor in the call stack
( ex: a QWindow sub-class that creates a backingstore inside it's
ctor).

Crash can be reproduced by running examples/gui/analogclock.

Change-Id: I4622ceaeb05696c5ae0181a528f58e5d102dcb22
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp
src/plugins/platforms/qnx/qqnxrasterbackingstore.h