forked from qt-creator/qt-creator
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:
@@ -83,8 +83,6 @@ DesignDocument::~DesignDocument()
|
|||||||
|
|
||||||
Model *DesignDocument::currentModel() const
|
Model *DesignDocument::currentModel() const
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_documentModel);
|
|
||||||
|
|
||||||
if (m_inFileComponentModel)
|
if (m_inFileComponentModel)
|
||||||
return m_inFileComponentModel.data();
|
return m_inFileComponentModel.data();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user