diff --git a/meshroom/ui/qml/Application.qml b/meshroom/ui/qml/Application.qml index 8e0b498a..ef91bcca 100644 --- a/meshroom/ui/qml/Application.qml +++ b/meshroom/ui/qml/Application.qml @@ -1281,7 +1281,7 @@ Page { _reconstruction.forceNodesStatusUpdate(); computeManager.submit(nodes) } - onFilesDropped: { + onFilesDropped: function(drop, mousePosition) { var filesByType = _reconstruction.getFilesByTypeFromDrop(drop.urls) if (filesByType["meshroomScenes"].length == 1) { ensureSaved(function() { diff --git a/meshroom/ui/qml/GraphEditor/GraphEditor.qml b/meshroom/ui/qml/GraphEditor/GraphEditor.qml index 1d9b160e..79d5c350 100755 --- a/meshroom/ui/qml/GraphEditor/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor/GraphEditor.qml @@ -989,12 +989,12 @@ Item { id: dropArea anchors.fill: parent keys: ["text/uri-list"] - onEntered: { + onEntered: function(drag) { nbMeshroomScenes = 0 nbDraggedFiles = drag.urls.length drag.urls.forEach(function(file) { - if (file.endsWith(".mg")) { + if (String(file).endsWith(".mg")) { nbMeshroomScenes++ } })