diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-05-24 18:59:39 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-05-24 18:59:39 +0000 |
commit | a4bbd97979922583244fb69040f96f39dc58d325 (patch) | |
tree | 0cf5ff08b91fec921bbb59df684b453109d40bf1 | |
parent | 474281be2a9c97e7caaff902fff1591e922ba60c (diff) |
Use cf_update_capture_comment() to save the capture comment (instead of
summary_update_comment() which is no longer necessary).
cf_update_capture_comment() has the advantage that it doesn't mark the file
as unsaved unless the comment actually changed.
svn path=/trunk/; revision=42832
-rw-r--r-- | summary.c | 9 | ||||
-rw-r--r-- | summary.h | 7 | ||||
-rw-r--r-- | ui/gtk/summary_dlg.c | 7 |
3 files changed, 3 insertions, 20 deletions
@@ -230,12 +230,3 @@ summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_ } } #endif - -void -summary_update_comment(capture_file *cf, gchar *comment) -{ - - /* Get info from SHB */ - wtap_write_shb_comment(cf->wth, comment); - -} @@ -89,12 +89,5 @@ summary_fill_in(capture_file *cf, summary_tally *st); extern void summary_fill_in_capture(capture_file *cf, capture_options *capture_opts, summary_tally *st); #endif -extern void -summary_update_comment(capture_file *cf, gchar *comment); #endif /* summary.h */ - - - - - diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c index 6e58802e25..993938a363 100644 --- a/ui/gtk/summary_dlg.c +++ b/ui/gtk/summary_dlg.c @@ -143,11 +143,10 @@ summary_comment_text_buff_save_cb(GtkWidget *w _U_, GtkWidget *view) /*g_warning("The new comment is '%s'",new_packet_comment);*/ - summary_update_comment(&cfile, new_comment); - /* Mark the file as having unsaved changes; this causes a popup asking to save the file if we quit the file */ - cfile.unsaved_changes = TRUE; - set_menus_for_capture_file(&cfile); + cf_update_capture_comment(&cfile, new_comment); + /* Update the menus in case the file might need to be saved */ + set_menus_for_capture_file(&cfile); } static void |