diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-08-26 16:13:27 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-08-27 13:40:18 +0200 |
commit | 1b7eb341a408732f4561e07f77694ee2fb118d50 (patch) | |
tree | dff503f333b9de21fa64f1e704de037301220562 /src/qml/qml/qqmldata_p.h | |
parent | 5e254fc9fa32f9639fd8fb0e2bb23d08073c2231 (diff) |
Fix not having a context when making a QQuickWidget visible again
If we hit the size-is-zero path, the condition that got recently introduced
(if fakeHidden && d->context) is not really sufficient. It could be that
d->context is valid but the scenegraph is invalidated (i.e.
offscreenWindow->openglContext() is null).
This case has to be handled the same way.
Therefore, the function is now simplified to perform polish & sync
in one place.
Task-number: QTBUG-40794
Change-Id: Ia54f25fbdc199a0b88501a2d89edb5cee5411972
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/qml/qml/qqmldata_p.h')
0 files changed, 0 insertions, 0 deletions