Commit a39f140e authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Fix crash for closing widget designer

Qml Designer should only react to qml files.

Change-Id: If79f4e96fddc0eba9ea52a28705ff1f9f528200f
Reviewed-by: default avatarDaniel Teske <>
parent 849f8e2d
......@@ -347,6 +347,10 @@ static bool isDesignerMode(Core::IMode *mode)
void QmlDesignerPlugin::onCurrentModeChanged(Core::IMode *newMode, Core::IMode *oldMode)
if (Core::EditorManager::currentEditor()
&& Core::EditorManager::currentEditor()->id() != QmlJSEditor::Constants::C_QMLJSEDITOR_ID)
if ((currentDesignDocument()
&& Core::EditorManager::currentEditor() == currentDesignDocument()->editor())
&& isDesignerMode(newMode))
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