Skip to content

Commit

Permalink
fix FS#2380 - SaveAs doesn't always open the associated path of the
Browse files Browse the repository at this point in the history
active drawing
  • Loading branch information
qcad committed Jul 27, 2022
1 parent 6bfca6e commit f46ecd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/File/SaveAs/SaveAs.js
Expand Up @@ -145,13 +145,13 @@ SaveAs.prototype.beginEvent = function() {
}

if (fileName.length!==0) {
fileDialog.setDirectory(fileInfo.absolutePath());
fileDialog.selectFile(fileInfo.absoluteFilePath());
}
else {
fileDialog.setDirectory(lastSaveAsFileDir);
}


fileDialog.setLabelText(QFileDialog.FileType, qsTr("Format:"));

// global function qcadInitFileDialog may be registered to perform
Expand Down

0 comments on commit f46ecd4

Please sign in to comment.