forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user