diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-30 21:30:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-30 21:30:43 +0000 |
commit | 5d25bd827583ef80e52fcd891e6b5358c9eec02c (patch) | |
tree | 1630f980fe585e17fc431ea7be9474cbca31d48b /file.c | |
parent | dc548e7458fc945d9f2bc1287756bc71faf5a1e1 (diff) | |
download | wireshark-5d25bd827583ef80e52fcd891e6b5358c9eec02c.tar.gz |
There's no need to put a "Could not save to" message in the status bar
if a "File:Save" or "File:Save As" fails - the message box it pops up
when that happens tells you that, it didn't do so before the change to
add the ability to save only the packets currently being displayed, and
putting that message in the status bar hides the normal message telling
you what the current file is (and it's still the current file, if the
save failed).
svn path=/trunk/; revision=1171
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.128 1999/11/30 20:49:46 guy Exp $ + * $Id: file.c,v 1.129 1999/11/30 21:30:43 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1576,7 +1576,6 @@ save_cap_file(char *fname, capture_file *cf, gboolean save_filtered, { gchar *from_filename; gchar *name_ptr, *save_msg, *save_fmt = " Saving: %s..."; - gchar *err_fmt = " Error: Could not save to '%s'"; size_t msg_len; int err; gboolean do_copy; @@ -1757,12 +1756,6 @@ done: set_menu_sensitivity("/File/Save", FALSE); } } - } else { - msg_len = strlen(name_ptr) + strlen(err_fmt) + 2; - save_msg = g_malloc(msg_len); - snprintf(save_msg, msg_len, err_fmt, name_ptr); - gtk_statusbar_push(GTK_STATUSBAR(info_bar), file_ctx, save_msg); - g_free(save_msg); } return err; } |