Fix segfault on certain resize patterns in QQuickWidget
authorLaszlo Agocs <laszlo.agocs@digia.com>
Tue, 1 Jul 2014 09:36:33 +0000 (11:36 +0200)
committerLaszlo Agocs <laszlo.agocs@digia.com>
Mon, 7 Jul 2014 08:04:53 +0000 (10:04 +0200)
commit5494dc7bff733b03eebf73b3da2cff4142c9fc5f
tree56300abc40aae3409dc6dfe0e71aa59a108bf657
parent97cd2af9ac4c9b516ddf7ed19041041444b5f5e0
Fix segfault on certain resize patterns in QQuickWidget

Resizing to an empty size followed by another resize leads to
sync() without having the context and the render control intialized.
This is wrong.

Task-number: QTBUG-39858
Change-Id: I5908723272165a656d192644cceb16ed253e6d3b
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
src/quickwidgets/qquickwidget.cpp