diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-20 08:56:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-20 08:56:06 +0000 |
commit | 4a9b825c49a228b6456fbf24731aadcdd47d2c4e (patch) | |
tree | 55a654e285d7298213738a4b58db5e65a09e59d8 /rawshark.c | |
parent | acc2a3706bf20e518f63492f424d0276d70e7e32 (diff) | |
download | wireshark-4a9b825c49a228b6456fbf24731aadcdd47d2c4e.tar.gz wireshark-4a9b825c49a228b6456fbf24731aadcdd47d2c4e.tar.bz2 wireshark-4a9b825c49a228b6456fbf24731aadcdd47d2c4e.zip |
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
Diffstat (limited to 'rawshark.c')
-rw-r--r-- | rawshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rawshark.c b/rawshark.c index cad08a9afe..7604627a98 100644 --- a/rawshark.c +++ b/rawshark.c @@ -1584,8 +1584,8 @@ raw_cf_open(capture_file *cf, const char *fname) /* Indicate whether it's a permanent or temporary file. */ cf->is_tempfile = FALSE; - /* If it's a temporary capture buffer file, mark it as not saved. */ - cf->user_saved = FALSE; + /* No user changes yet. */ + cf->unsaved_changes = FALSE; cf->cd_t = WTAP_FILE_UNKNOWN; cf->count = 0; |