diff --git a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarymodel.cpp b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarymodel.cpp index 8024ccf2816..3baacb2571f 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarymodel.cpp +++ b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarymodel.cpp @@ -401,6 +401,7 @@ void ItemLibraryModel::update(Model *model) // we need to exclude all items from unsupported imports but only if they are not user-defined modules if (!(entry.category() == ItemLibraryImport::userComponentsTitle()) + && !entry.requiredImport().isEmpty() && !mcuManager.allowedImports().contains(entry.requiredImport())) { blocked = true; }