[ui] MediaLibrary: enable dynamicRoles on mediaModel

If an outside 3D media file is the first thing ever loaded, 'model.attribute' will be initialized to 'null' and will prevent an actual Attribute to be associated to this role. This breaks media loading from within Meshroom.
This commit is contained in:
Yann Lanthony 2019-02-07 19:55:05 +01:00
parent 6199de0b45
commit da1b842493

View file

@ -30,7 +30,7 @@ Entity {
QtObject {
id: m
property ListModel mediaModel: ListModel {}
property ListModel mediaModel: ListModel { dynamicRoles: true }
property var sourceToEntity: ({})
readonly property var mediaElement: ({