[ui] init saveAs folder

if we already have a project file
This commit is contained in:
Fabien Castan 2020-10-15 18:40:05 +02:00
parent 6b68079b56
commit ecc8cd4332

View file

@ -411,7 +411,12 @@ ApplicationWindow {
id: saveAsAction
text: "Save As..."
shortcut: "Ctrl+Shift+S"
onTriggered: saveFileDialog.open()
onTriggered: {
if(_reconstruction.graph && _reconstruction.graph.filepath) {
saveFileDialog.folder = Filepath.stringToUrl(Filepath.dirname(_reconstruction.graph.filepath))
}
saveFileDialog.open()
}
}
MenuSeparator { }
Action {