From e7c211f9ad5a78f12403a3e3ea01d0a3647bed11 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Fri, 14 Oct 2011 17:18:32 +0200 Subject: [PATCH] QmlDesigner.designDocumentController: fixes update of SubComponentManger We have to update the SubComponentManger each time the document changes. Change-Id: Ifb42e3d6b2e123ef651309144ae8f3bbdbe39eb7 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> --- .../components/integration/designdocumentcontroller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp b/src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp index f5d2690e800..a24210b0d15 100644 --- a/src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp +++ b/src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp @@ -576,6 +576,7 @@ void DesignDocumentController::loadCurrentModel() d->formEditorView->crumblePath()->pushElement(simplfiedDisplayName(), createCrumbleBarInfo()); d->documentLoaded = true; + d->subComponentManager->update(d->searchPath, d->model->imports()); Q_ASSERT(d->masterModel); QApplication::restoreOverrideCursor(); } -- GitLab