"Save As" always saves everything and, when the save is done, makes the
authorGuy Harris <guy@alum.mit.edu>
Tue, 22 May 2012 22:17:57 +0000 (22:17 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 22 May 2012 22:17:57 +0000 (22:17 -0000)
commitc2bb7956c234af4babe33f84628dff9e869ba2e0
tree7f0c83d0778a8578ee3d157f1369de1a3e8be968
parent4e7d87caa2b9d1c091a09dd773df057286169112
"Save As" always saves everything and, when the save is done, makes the
new file the current file, as is the case in most if not all other GUI
applications.

A new "Export Specified Packets" menu option allows you to specify which
packets to write out, with the default being the displayed packets (and
those on which the displayed packets depend for, e.g.  reassembly), and
never makes the resulting file the current file.

The two operations are conceptually distinct.  Lumping them into one
menu item, with the default for "Save As" being "displayed packets only"
and thus making it behave like the latter operation, was causing some
confusion; see, for example, bug 6640.

Make the dialog popped up if you try to "Save As" or "Export Specified
Packets" on top of an existing file ask the "do you want to do this?"
question in the main part of the message, and note in the secondary text
that doing that will overwrite what's in the file; that matches what
TextEdit on OS X and the GNOME text editor say.

svn path=/trunk/; revision=42792
file.c
file.h
ui/gtk/capture_dlg.c
ui/gtk/capture_file_dlg.c
ui/gtk/capture_file_dlg.h
ui/gtk/drag_and_drop.c
ui/gtk/file_import_dlg.c
ui/gtk/main.c
ui/gtk/main_menubar.c
ui/gtk/new_packet_list.c