From 750d666e730d8e21a90e1a65a8b9d7e40f158351 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 20 Jun 2012 04:44:14 +0000 Subject: Handle the case where the user has added comments to a file that's not in a format that supports comments and they do a "Save" by popping up a similar question to the one we pop up in the "Save As" case and, if they say "choose another format", pop up a "Save As" dialog box. svn path=/trunk/; revision=43395 --- file.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'file.h') diff --git a/file.h b/file.h index 7cb6d5aadc..a86e85fd85 100644 --- a/file.h +++ b/file.h @@ -652,6 +652,14 @@ void cf_update_capture_comment(capture_file *cf, gchar *comment); */ void cf_update_packet_comment(capture_file *cf, frame_data *fdata, gchar *comment); +/** + * Does this capture file have any comments? + * + * @param cf the capture file + * @return TRUE if it does, FALSE if it doesn't + */ +gboolean cf_has_comments(capture_file *cf); + #if defined(HAVE_HEIMDAL_KERBEROS) || defined(HAVE_MIT_KERBEROS) void read_keytab_file(const char *); #endif -- cgit v1.2.1