summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-11-30 21:30:43 +0000
committerGuy Harris <guy@alum.mit.edu>1999-11-30 21:30:43 +0000
commit5d25bd827583ef80e52fcd891e6b5358c9eec02c (patch)
tree1630f980fe585e17fc431ea7be9474cbca31d48b /file.c
parentdc548e7458fc945d9f2bc1287756bc71faf5a1e1 (diff)
downloadwireshark-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.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/file.c b/file.c
index 2387afe673..b2a7e91d61 100644
--- a/file.c
+++ b/file.c
@@ -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;
}