From bfb9ee3272fb0bf03cf361b1787d84a66ebbc1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Thu, 9 Jan 2025 19:19:20 +0100 Subject: [PATCH] [GraphEditor] Convert file to string before testing its extension This fixes the "Property 'endsWith' of object file xxx is not a function" warning. --- meshroom/ui/qml/GraphEditor/GraphEditor.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshroom/ui/qml/GraphEditor/GraphEditor.qml b/meshroom/ui/qml/GraphEditor/GraphEditor.qml index 36a78a36..6feb3d6e 100755 --- a/meshroom/ui/qml/GraphEditor/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor/GraphEditor.qml @@ -992,7 +992,7 @@ Item { nbDraggedFiles = drag.urls.length drag.urls.forEach(function(file) { - if (file.endsWith(".mg")) { + if (String(file).endsWith(".mg")) { nbMeshroomScenes++ } })