forked from qt-creator/qt-creator
QmlDesigner.DocumentManagment: Updating the Qt version when attaching
Updating the Qt version when attaching the rewriter. When the Qml file was opened first no project might have been configured, but a valid project was opened later. Change-Id: Iff59464bfe0d3628a99878d3463c8763087ad4f2 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -275,6 +275,7 @@ void QmlDesignerPlugin::activateAutoSynchronization()
|
||||
if (!currentDesignDocument()->isDocumentLoaded())
|
||||
currentDesignDocument()->loadDocument(currentDesignDocument()->plainTextEdit());
|
||||
|
||||
currentDesignDocument()->updateActiveQtVersion();
|
||||
currentDesignDocument()->attachRewriterToModel();
|
||||
|
||||
resetModelSelection();
|
||||
|
Reference in New Issue
Block a user