diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2015-01-23 10:23:28 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2015-01-23 10:28:41 +0100 |
commit | 7af11ebaf9aeeeee5075a429c349dcc7e3f9153f (patch) | |
tree | f68afb7590154437f187aa84bb62197e8882ac62 | |
parent | 73a9bea51df2c797f877cc1752578042bd40ff45 (diff) | |
download | qt-creator-7af11ebaf9aeeeee5075a429c349dcc7e3f9153f.tar.gz |
Fix for import management
If we add a new import we have to scan for new item library entries
in the directory belonging to the import.
Without this patch e.g. the commercial controls were not added
to the item library. The user had to switch to edit mode and back
to trigger and update.
Change-Id: Ie145aea53fbd57ffac976725b6c1fd5553ddf22e
Reviewed-by: BogDan Vatra <bogdan@kde.org>
-rw-r--r-- | src/plugins/qmldesigner/components/importmanager/importmanagerview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/importmanager/importmanagerview.cpp b/src/plugins/qmldesigner/components/importmanager/importmanagerview.cpp index 3c92e73e06..841f18a536 100644 --- a/src/plugins/qmldesigner/components/importmanager/importmanagerview.cpp +++ b/src/plugins/qmldesigner/components/importmanager/importmanagerview.cpp @@ -32,6 +32,7 @@ #include "importswidget.h" #include <rewritingexception.h> +#include <qmldesignerplugin.h> namespace QmlDesigner { @@ -264,6 +265,8 @@ void ImportManagerView::addImport(const Import &import) catch (RewritingException &e) { e.showException(); } + + QmlDesignerPlugin::instance()->currentDesignDocument()->updateSubcomponentManager(); } } // namespace QmlDesigner |