Commit 69b9cb8c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.statesEditor: crash fix

The node instance view might be detached.
parent 7a43252d
......@@ -49,6 +49,9 @@ QImage StatesEditorImageProvider::requestImage(const QString &id, QSize *size, c
if (m_nodeInstanceView.isNull())
return QImage();
if (!m_nodeInstanceView->model())
return QImage(); //NodeInstanceView might be detached
QSize newSize = requestedSize;
if (newSize.isEmpty())
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