From cdb25e28dfdabdf5fadf622b02fcbd91947c38df Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Fri, 21 Feb 2025 18:18:15 +0100 Subject: [PATCH] [ui] Application: fix save-as dialog not working properly (Qt6.7+) Since Qt 6.7, type annotations are enforced at runtime. Typing the `sourceSaveDialog` as Dialog (or Platform.FileDialog) breaks the value received by the function and its behavior. --- meshroom/ui/qml/Application.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshroom/ui/qml/Application.qml b/meshroom/ui/qml/Application.qml index e96677d7..8e0b498a 100644 --- a/meshroom/ui/qml/Application.qml +++ b/meshroom/ui/qml/Application.qml @@ -90,7 +90,7 @@ Page { } } - function validateFilepathForSave(filepath: string, sourceSaveDialog: Dialog): bool { + function validateFilepathForSave(filepath: string, sourceSaveDialog): bool { /** * Return true if `filepath` is valid for saving a file to disk. * Otherwise, show a warning dialog and returns false.