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>
This commit is contained in:
Thomas Hartmann
2015-01-23 10:23:28 +01:00
committed by Thomas Hartmann
parent 73a9bea51d
commit 7af11ebaf9

View File

@@ -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