forked from qt-creator/qt-creator
QmlDesigner.documentController: bugfix
We need to reset the componentView if a document changes. Change-Id: I4eb14a34a41dd80d96c4350f7e596b6be47970dd Reviewed-on: http://codereview.qt.nokia.com/1409 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -557,6 +557,7 @@ void DesignModeWidget::setAutoSynchronization(bool sync)
|
|||||||
m_currentDesignDocumentController->loadMaster(m_currentTextEdit.data());
|
m_currentDesignDocumentController->loadMaster(m_currentTextEdit.data());
|
||||||
} else {
|
} else {
|
||||||
m_currentDesignDocumentController->loadCurrentModel();
|
m_currentDesignDocumentController->loadCurrentModel();
|
||||||
|
m_componentView->resetView();
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<RewriterView::Error> errors = m_currentDesignDocumentController->qmlErrors();
|
QList<RewriterView::Error> errors = m_currentDesignDocumentController->qmlErrors();
|
||||||
|
|||||||
Reference in New Issue
Block a user