Commit 7af11eba authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

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: default avatarBogDan Vatra <bogdan@kde.org>
parent 73a9bea5
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment