Commit 7ad3ba2d authored by Lars Knoll's avatar Lars Knoll Committed by The Qt Project
Browse files

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: default avatarGunnar Sletta <gunnar.sletta@digia.com>
parent a2d115fb
No related merge requests found
Showing with 2 additions and 0 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment