aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-06-20 22:25:33 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-06-20 22:25:33 +0000
commit369658c499037ce52de535f8390b472588dabc4d (patch)
treeecd284b000e623cfa84b052d465ea91255ea4cbf /file.c
parentd7856ef30457ce7d89ab0c380ae7e19db772c396 (diff)
inform expert info layer about the current number of packet comments
when the last comment is removed and we have no other expert info, the maximum severity is changed from comment to none svn path=/trunk/; revision=50091
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index 66949864c7..3f9607279c 100644
--- a/file.c
+++ b/file.c
@@ -42,6 +42,7 @@
#endif
#include <epan/epan.h>
+#include <epan/expert.h>
#include <epan/filesystem.h>
#include "color.h"
@@ -3902,6 +3903,8 @@ cf_update_packet_comment(capture_file *cf, frame_data *fdata, gchar *comment)
cf->packet_comment_count++;
}
+ expert_update_comment_count(cf->packet_comment_count);
+
/* OK, we have unsaved changes. */
cf->unsaved_changes = TRUE;
}