Save errors don't bring up warning dialog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Released
|
High
|
Unassigned | ||
geda-gschem (Debian) |
Fix Released
|
Unknown
|
Bug Description
When saving a file which can't be writte, the error message dissapears quietly into the log window.
Since the user's data hasn't been saved, it would be appropriate to pop up a warning dialog citing the error and a standard description (from the OS) of why the file wasn't saved.
I've marked this as a gschem bug, although any dialogs added should be updated in gattrib as well.
When fixing this, it might be nice to update the logged messages. Currently, for a save error (due to permissions), we get:
o_save: Could not open [/home/
Could NOT save page [/home/
The first line is misleading, and should be removed. We should also cite the reason for the error after the second line.
Changed in geda: | |
milestone: | none → 1.8.0 |
Changed in pcb (Debian): | |
status: | Unknown → Confirmed |
Changed in geda: | |
status: | Triaged → Fix Committed |
affects: | pcb (Debian) → geda-gschem (Debian) |
Changed in geda: | |
status: | Fix Committed → Fix Released |
Changed in geda-gschem (Debian): | |
status: | Confirmed → Fix Released |
Steps to reproduce:
mkdir unwritable
touch unwritable/test.sch
chmod -R a-w unwritable
gschem unwritable/test.sch
Insert a component, "File->Save". No error message appears; log message is:
Can't save backup file: /home/peter/ Projects/ geda/gaf/ unwritable/ test.sch~ .Could NOT save page [/home/ peter/Projects/ geda/gaf/ unwritable/ test.sch]