Commit 219ef23c authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.documentController: bugfix

We need to reset the componentView if a document changes.

Change-Id: I4eb14a34a41dd80d96c4350f7e596b6be47970dd
Reviewed-on: http://codereview.qt.nokia.com/1409Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent a8939034
......@@ -557,6 +557,7 @@ void DesignModeWidget::setAutoSynchronization(bool sync)
m_currentDesignDocumentController->loadMaster(m_currentTextEdit.data());
} else {
m_currentDesignDocumentController->loadCurrentModel();
m_componentView->resetView();
}
QList<RewriterView::Error> errors = m_currentDesignDocumentController->qmlErrors();
......
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