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 /ui | |
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
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/summary_dlg.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 |