http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43060
User: guy
Date: 2012/06/04 03:28 AM
Log:
Make the "Export Selected Packets As..." code path more like the "Save
As..." code path.
Extract the code for the "do you want to overwrite this file" and "OK,
you do - are you aware it's {user-immutable, read-only}?" code paths
into a common routine for use by both of those and, potentially, other
save/export/etc. code paths in the future.
For "Save As", allow us to save atop the current capture file, as that's
just what "Save" does if there are unsaved changes, and "safe save"
makes that work. *Don't* allow that for "Export Selected Packets
As...", however.
The file chooser is run as a modal dialog, so we don't need to worry
about creating more than one of them or about the number of marked
packets etc. being changed out from under us. Get rid of a bunch of
static variables.
Directory: /trunk/ui/gtk/
Changes Path Action
+103 -379 capture_file_dlg.c Modified
+0 -16 capture_file_dlg.h Modified
+135 -0 file_dlg.c Modified
+9 -0 file_dlg.h Modified
+0 -2 main.c Modified
+0 -1 new_packet_list.c Modified
+36 -0 range_utils.c Modified
+9 -0 range_utils.h Modified