forked from qt-creator/qt-creator
QmlDesigner: Emit changed signal after updating m_matBundleExists
Fixes: QDS-9516 Change-Id: I905aff3a526d913d3eb56ae556cbebd7d7e67c5b Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -249,8 +249,6 @@ void ContentLibraryMaterialsModel::loadMaterialBundle(const QDir &matBundleDir)
|
||||
}
|
||||
}
|
||||
|
||||
m_matBundleExists = true;
|
||||
|
||||
QString bundleId = m_matBundleObj.value("id").toString();
|
||||
|
||||
const QJsonObject catsObj = m_matBundleObj.value("categories").toObject();
|
||||
@@ -304,6 +302,9 @@ void ContentLibraryMaterialsModel::loadMaterialBundle(const QDir &matBundleDir)
|
||||
} else {
|
||||
createImporter(matBundleDir.path(), bundleId, sharedFiles);
|
||||
}
|
||||
|
||||
m_matBundleExists = true;
|
||||
emit matBundleExistsChanged();
|
||||
}
|
||||
|
||||
bool ContentLibraryMaterialsModel::hasRequiredQuick3DImport() const
|
||||
|
Reference in New Issue
Block a user