Ticket #437 (closed defect: fixed)
Save As doesn't accept path from dialog
| Reported by: | waxhead | Owned by: | waxhead |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | editor | Version: | trunk |
| Keywords: | Cc: |
Description
I'm logging this bug so it doesn't get forgotten.
Trunk: r5773
When you click Save As, the Name: Text entry allows you to type in a name. When you type in a full path, eg /tmp/newfile.txt Padre saves as the new name, but in the same location that the original file was opened from.
This isn't expected behaviour.
I would expect that a path would allow you to save as to that path.
Checked this in gedit and this is the behaviour.
I haven't found where in Padre this is mananged.
Change History
comment:2 Changed 4 years ago by waxhead
- Owner set to waxhead
- Priority changed from major to minor
- Status changed from new to assigned
I'm taking this one as I just committed the change, but left all the ugly comments in the code, if this doesn't cause any problems in a few days, I'll clean up the code and close this ticket.

This is a fairly straightforward fix.
Using the ->GetPath? method of the FileDialog?, it returns the full path of the file name that you type in.