Hi Ales,
I have just commited some changes to CVS so libgeda checks if there is
an autosave backup file when loading a new file. If it exists, then it
calls an app-dependant function to ask the user what to do.

El dom, 06-11-2005 a las 19:42 -0500, Ales Hvezda escribió:
[snip]
> >The main one is what should applications other than gschem do when they
> >found an autosave backup. For example: what happens if an autosave
> >backup is found when running gattrib, gnetlist, or whatever? should the
> >user be warned and asked for an action? should they just exit (telling
> >the user what's happening, of course) and let the user run gschem to
> >correct the situation?
> 
>       As a bare minimum a warning should be outputed.  I'm okay with that
> for the all the programs.  

If the app-dependant function is NULL, libgeda will output a warning and
continue loading the original file. The only changes to other apps are
only setting that function to NULL.

I have added a new function to gschem, which opens a message dialog
asking the user wether to load the backup file or not. It's the only app
asking the user.

As usual, testing is welcome!. Please report any comment. Cheers,

Carlos

Reply via email to