diff --git a/src/plugins/qmldesigner/qmldesignerplugin.cpp b/src/plugins/qmldesigner/qmldesignerplugin.cpp index b3dadc90e488586c98ba79ea4cd296f9f4247835..8d97ed0d4cb391b9238d5775df2f6ce5db725638 100644 --- a/src/plugins/qmldesigner/qmldesignerplugin.cpp +++ b/src/plugins/qmldesigner/qmldesignerplugin.cpp @@ -197,7 +197,8 @@ void QmlDesignerPlugin::showDesigner() void QmlDesignerPlugin::hideDesigner() { - if (currentDesignDocument()->currentModel() + if (currentDesignDocument() + && currentDesignDocument()->currentModel() && !currentDesignDocument()->hasQmlSyntaxErrors()) jumpTextCursorToSelectedModelNode();