LubosD / twinkle

Qt 5 port of Twinkle
http://twinkle.dolezel.info
GNU General Public License v2.0
169 stars 49 forks source link

Avoid segfaulting if `QQuickView::setSource()` fails to load a component #294

Closed fbriere closed 2 years ago

fbriere commented 2 years ago

If QQuickView::setSource() fails to load a QML component for any reason, rootObject() will then return a null pointer, which will cause segfaults if not accounted for.