Don't polish items if the screen is 0
authorLars Knoll <lars.knoll@digia.com>
Fri, 13 Sep 2013 10:49:46 +0000 (12:49 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 18 Sep 2013 11:13:58 +0000 (13:13 +0200)
commit7ad3ba2dbb396552d062c9d6d75697150bee75da
tree8ec05f9b3c900bb88598b0b3ec46b3e5779b8841
parenta2d115fbaffee282a1d32ed92c6700e6c3dd811b
Don't polish items if the screen is 0

The current code leads to an assertion during qapp
destruction time, as the screen gets set to 0, which
triggers a force polish that in turns accesses the qapp instance.

In addition, we don't need to do any work when the screen is 0,
as the window can't be visble in that case. Once it gets visible
again, forcePolish() will be called again.

Change-Id: I81d9a11e494b4573a56d06bca651cc6b5fa785c7
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/items/qquickwindow.cpp