Ethereal-dev: [Ethereal-dev] GUI: Asking user for unsaved files before when closing...

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Fri, 30 Jan 2004 00:22:19 +0100
Hi List!

I've recently implemented a feature, I described and discussed some time ago on the list.


For every GUI action, which will clear/delete an unsaved capture file, will now do the following:

a) Raise dialog, e.g. "Save packets in <file> before quit?" with Yes/No/Cancel buttons
b) Yes -> raise "Save As" dialog
c) No -> continue with selected operation ("deleting" previous file)
d) Cancel -> cancel operation and close dialog

at b)
d) if the file was saved ok, do c)
e) if the "Cancel" button was pressed, do d)


I find the following places to add this:

"File->Open" (or toolbar)
"File->Open Recent"
"File->Close" (or toolbar)
"File->Quit" (or window close)
"Capture->Start" (or toolbar)

I hope these were all places which should be handled.

Any comments?

Regards, ULFL