From 4a9b825c49a228b6456fbf24731aadcdd47d2c4e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 20 May 2012 08:56:06 +0000 Subject: Change the "user_saved" member of a capture_file structure to "unsaved_changes", and have it be TRUE iff changes have been made to the file since it was read - *not* if it's a temporary file from a live capture. Check the "is_tempfile" member, and the "unsaved_changes" member, when appropriate. Just have a set_toolbar_for_capture_file() routine that updates the "save", "close", and "reload" toolbar as appropriate, given a capture_file structure - absorb the function of set_toolbar_for_unsaved_capture_file() into it. svn path=/trunk/; revision=42721 --- cfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cfile.h') diff --git a/cfile.h b/cfile.h index 9d0af14b6a..63bd0eee90 100644 --- a/cfile.h +++ b/cfile.h @@ -70,7 +70,7 @@ typedef struct _capture_file { gchar *filename; /* Name of capture file */ gchar *source; /* Temp file source, e.g. "Pipe from elsewhere" */ gboolean is_tempfile; /* Is capture file a temporary file? */ - gboolean user_saved; /* If capture file is temporary or modified, has it been saved by user yet? */ + gboolean unsaved_changes; /* Does the capture file have changes that have not been saved? */ gint64 f_datalen; /* Size of capture file data (uncompressed) */ guint16 cd_t; /* File type of capture file */ int lnk_t; /* Link-layer type with which to save capture */ -- cgit v1.2.1