aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-01-02 21:48:24 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-01-02 21:48:24 +0000
commit480cf33874e756eb67184a4c85003a1e30b5e350 (patch)
tree62584b9b9aa7fa4e4b9c033d7c9ab30b1600ce4f /gtk
parent185b88da79cb4e92bd346658d35f5376e6543069 (diff)
downloadwireshark-480cf33874e756eb67184a4c85003a1e30b5e350.tar.gz
wireshark-480cf33874e756eb67184a4c85003a1e30b5e350.tar.bz2
wireshark-480cf33874e756eb67184a4c85003a1e30b5e350.zip
hide save dialog, while saving
svn path=/trunk/; revision=9527
Diffstat (limited to 'gtk')
-rw-r--r--gtk/file_dlg.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c
index 3aafc6bdff..04ab2f658a 100644
--- a/gtk/file_dlg.c
+++ b/gtk/file_dlg.c
@@ -1,7 +1,7 @@
/* file_dlg.c
* Dialog boxes for handling files
*
- * $Id: file_dlg.c,v 1.71 2004/01/01 13:10:45 ulfl Exp $
+ * $Id: file_dlg.c,v 1.72 2004/01/02 21:48:24 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -946,19 +946,21 @@ file_save_as_ok_cb(GtkWidget *w _U_, GtkFileSelection *fs) {
return;
}
- /* Write out the packets (all, or only the ones that are currently
- displayed or marked) to the file with the specified name. */
+ /* don't show the dialog while saving */
+ gtk_widget_hide(GTK_WIDGET (fs));
+ /* Write out the packets (all, or only the ones from the current
+ range) to the file with the specified name. */
if (! cf_save(cf_name, &cfile, &range, filetype)) {
/* The write failed; don't dismiss the open dialog box,
just leave it around so that the user can, after they
dismiss the alert box popped up for the error, try again. */
g_free(cf_name);
+ gtk_widget_show(GTK_WIDGET (fs));
return;
}
/* The write succeeded; get rid of the file selection box. */
- gtk_widget_hide(GTK_WIDGET (fs));
gtk_widget_destroy(GTK_WIDGET (fs));
/* Save the directory name for future file dialogs. */