Mark the file as unsaved when updating packet comments.
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 27 Feb 2012 15:38:34 +0000 (15:38 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 27 Feb 2012 15:38:34 +0000 (15:38 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41208 f5534014-38df-0310-8fa8-9805f1628bb7

ui/gtk/new_packet_list.c

index 6ff1a24..f250c15 100644 (file)
@@ -1735,6 +1735,8 @@ new_packet_list_update_packet_comment(gchar *new_packet_comment)
        record = new_packet_list_get_record(model, &iter);
        g_free(record->fdata->opt_comment);
        record->fdata->opt_comment = new_packet_comment;
+       /* Mark the file as unsaved, caues a popup asking to save the file if we quit the file */
+       cfile.user_saved = FALSE;
 
        new_packet_list_queue_draw();