馃崚 Fix montage functionality
- FileDialog now defaults to open mode, so tell it we need to be in save mode.
- Use correct API to get the selected file; this changed in Qt6.
(cherry picked from commit aa7f85bc)
(cherry picked from commit aa7f85bc)