aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-05-24 18:59:39 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-05-24 18:59:39 +0000
commita4bbd97979922583244fb69040f96f39dc58d325 (patch)
tree0cf5ff08b91fec921bbb59df684b453109d40bf1 /ui/gtk/summary_dlg.c
parent474281be2a9c97e7caaff902fff1591e922ba60c (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/gtk/summary_dlg.c')
-rw-r--r--ui/gtk/summary_dlg.c7
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