QmlDesigner: Fix 'add to selected' gone from conent lib materials

Fixes: QDS-13125
Change-Id: I58737e8138579ed15166cefdfad05b11269a80da
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2024-06-28 13:02:02 +03:00
parent db9ee194fb
commit d5ea5cabe4
4 changed files with 19 additions and 6 deletions

View File

@@ -266,7 +266,8 @@ void ContentLibraryMaterialsModel::loadMaterialBundle()
QString qml = matObj.value("qml").toString();
TypeName type = QLatin1String("%1.%2").arg(bundleType, qml.chopped(4)).toLatin1(); // chopped(4): remove .qml
auto bundleMat = new ContentLibraryMaterial(category, matName, qml, type, icon, files);
auto bundleMat = new ContentLibraryMaterial(category, matName, qml, type, icon, files,
m_bundleId);
category->addBundleMaterial(bundleMat);
}