Commit 59c49d53 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: adding check for null pointer

Better save then sorry.

Change-Id: Ica022c37be8beab0d99a9c1aaf2d5fa15d7141e6
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent bf5e8dc0
......@@ -197,7 +197,8 @@ void QmlDesignerPlugin::showDesigner()
void QmlDesignerPlugin::hideDesigner()
{
if (currentDesignDocument()->currentModel()
if (currentDesignDocument()
&& currentDesignDocument()->currentModel()
&& !currentDesignDocument()->hasQmlSyntaxErrors())
jumpTextCursorToSelectedModelNode();
......
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