QmlDesigner.statesEditor: crash fix

The node instance view might be detached.
This commit is contained in:
Thomas Hartmann
2011-05-12 16:41:45 +02:00
parent 7a43252d49
commit 69b9cb8cc7

View File

@@ -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())