QmlDesigner: crash fix

The assert is wrong. We check the currentModel from QmlDesignerPlugin::hideDesigner()
and it can be null in case of a .ui/.qbs file.

Change-Id: Ifffa168f81bade757cc8d800150e4411c09915e7
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Thomas Hartmann
2013-08-29 12:34:44 +02:00
parent 5bcce3d131
commit c4babe8c43

View File

@@ -83,8 +83,6 @@ DesignDocument::~DesignDocument()
Model *DesignDocument::currentModel() const
{
Q_ASSERT(m_documentModel);
if (m_inFileComponentModel)
return m_inFileComponentModel.data();