Commit c4babe8c authored by Thomas Hartmann's avatar Thomas Hartmann

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: default avatarMarco Bubke <marco.bubke@digia.com>
parent 5bcce3d1
......@@ -83,8 +83,6 @@ DesignDocument::~DesignDocument()
Model *DesignDocument::currentModel() const
{
Q_ASSERT(m_documentModel);
if (m_inFileComponentModel)
return m_inFileComponentModel.data();
......
Markdown is supported
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