Don't try to reload QQuick images when changing to null screen
authorTaylor Braun-Jones <taylor.braun-jones@ge.com>
Thu, 31 Jul 2014 23:47:04 +0000 (19:47 -0400)
committerShawn Rutledge <shawn.rutledge@digia.com>
Wed, 6 Aug 2014 09:01:30 +0000 (11:01 +0200)
commit8076b428d2e6b8de8bacf556b8dccb5bbd99e0ac
tree06a8add58b598e4b0a07706f3d1d93f67136aec6
parent5a74e882e9d26136caedba1f772a3c5c96e50247
Don't try to reload QQuick images when changing to null screen

When a QGuiApplication is destructing, a screen change occurs causing
QQuickImageBase to reload images ultimately resulting in "QPixmap: Must
construct a QGuiApplication before a QPixmap". This patch fixes the
issue (except for systems which multiple screens, which is a separate
issue).

Task-number: QTBUG-40539
Change-Id: I4bafc9790741204e90190a4491ac7a9393d0d0a7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/items/qquickimagebase.cpp
src/quick/items/qquickimagebase_p.h