Commit 3e750afc authored by Friedemann Kleint's avatar Friedemann Kleint

DesignMode: Do not open .js-files in Design mode.

parent b4d72a78
......@@ -602,7 +602,8 @@ static bool openInDesignMode()
QString QmlJSEditorEditable::preferredMode() const
{
if (openInDesignMode())
if (editor()->mimeType() == QLatin1String(QmlJSEditor::Constants::QML_MIMETYPE)
&& openInDesignMode())
return QLatin1String(Core::Constants::MODE_DESIGN);
return QString();
}
......
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