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:
Thomas Hartmann
2014-03-05 15:20:12 +01:00
parent dc96abf47a
commit fed3e021e5

View File

@@ -275,6 +275,7 @@ void QmlDesignerPlugin::activateAutoSynchronization()
if (!currentDesignDocument()->isDocumentLoaded())
currentDesignDocument()->loadDocument(currentDesignDocument()->plainTextEdit());
currentDesignDocument()->updateActiveQtVersion();
currentDesignDocument()->attachRewriterToModel();
resetModelSelection();