Commit c3c84631 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.rewriterView: setupImports even if semantic checks fail

Change-Id: Idb243372f4c639c91ea3085c3fdf916758ddcf49

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarThomas Hartmann <>
parent 8452f28b
......@@ -746,6 +746,8 @@ bool TextToModelMerger::load(const QString &data, DifferenceHandler &differenceH
errors.append(RewriterView::Error(diagnosticMessage, QUrl::fromLocalFile(doc->fileName())));
setupImports(doc, differenceHandler);
if (view()->checkSemanticErrors()) {
Check check(doc, m_lookupContext->context());
check.setOptions(check.options() & ~Check::ErrCheckTypeErrors);
......@@ -760,8 +762,6 @@ bool TextToModelMerger::load(const QString &data, DifferenceHandler &differenceH
setupImports(doc, differenceHandler);
UiObjectMember *astRootNode = 0;
if (UiProgram *program = doc->qmlProgram())
if (program->members)
Supports Markdown
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