- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
andrew - Operating System Windows 7
- Severity Low
- Priority Very Low
- Reported Version 3.27.0
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#2380 - SaveAs doesn't always open the associated path of the active drawing
QCAD Professional Win 7 WinInstaller
Version: 3.27.0.0 (3.27.0)
Internet: QCAD.org
Build Date: Nov 30 2021
Revision: 62c65de
Qt Version: 5.13.2
Architecture: i386
Compiler: Unknown
Related topic:
https://qcad.org/rsforum/viewtopic.php?f=31&p=37972#p37964
In script SaveAs.js on line 104 the sourced filename is correct.
When this is not empty on line 147 the fileDialog should select this file in its own path.
The testing sequence in the topic shows this is not always the case.
I am using the system file dialog.
Firts setting the corresponding folder for the fileDialog seems to fix this:
147 if (fileName.length!==0) {
148 fileDialog.setDirectory(fileInfo.absolutePath());
149 fileDialog.selectFile(fileInfo.absoluteFilePath());
150 }
151 else {
....
Regards,
CVH
27.07.2022 06:37
Reason for closing: Fixed
Additional comments about closing:
https://github.com/qcad/q cad/commit/f46ecd4bb972b8a63feb6dc8ec166 2fc5b489ced
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Scouted for the string 'selectFile' in the repository and my installation folder and it occurs twice.
Once in File.js in conjunction with 'setDirectory' and once in SaveAs.js without setting the directory.
And in some of my custom scripts like Tile2Hatch but always in conjunction with 'setDirectory'.
Regards,
CVH
Thanks for the fix.