diff options
-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 |