Commit c3c84631 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.rewriterView: setupImports even if semantic checks fail

Change-Id: Idb243372f4c639c91ea3085c3fdf916758ddcf49
Reviewed-on: http://codereview.qt.nokia.com/485Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
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)
......
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