From fed3e021e59c3f72263589cab4c5801cd8493899 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 5 Mar 2014 15:20:12 +0100 Subject: [PATCH] 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 --- src/plugins/qmldesigner/qmldesignerplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/qmldesigner/qmldesignerplugin.cpp b/src/plugins/qmldesigner/qmldesignerplugin.cpp index 591f8e7b1ee..568d5e65da1 100644 --- a/src/plugins/qmldesigner/qmldesignerplugin.cpp +++ b/src/plugins/qmldesigner/qmldesignerplugin.cpp @@ -275,6 +275,7 @@ void QmlDesignerPlugin::activateAutoSynchronization() if (!currentDesignDocument()->isDocumentLoaded()) currentDesignDocument()->loadDocument(currentDesignDocument()->plainTextEdit()); + currentDesignDocument()->updateActiveQtVersion(); currentDesignDocument()->attachRewriterToModel(); resetModelSelection();