forked from osmocom/wireshark
hide save dialog, while saving
svn path=/trunk/; revision=9527
This commit is contained in:
parent
185b88da79
commit
480cf33874
1 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
/* file_dlg.c
|
/* file_dlg.c
|
||||||
* Dialog boxes for handling files
|
* 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
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* By Gerald Combs <gerald@ethereal.com>
|
||||||
|
@ -946,19 +946,21 @@ file_save_as_ok_cb(GtkWidget *w _U_, GtkFileSelection *fs) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write out the packets (all, or only the ones that are currently
|
/* don't show the dialog while saving */
|
||||||
displayed or marked) to the file with the specified name. */
|
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)) {
|
if (! cf_save(cf_name, &cfile, &range, filetype)) {
|
||||||
/* The write failed; don't dismiss the open dialog box,
|
/* The write failed; don't dismiss the open dialog box,
|
||||||
just leave it around so that the user can, after they
|
just leave it around so that the user can, after they
|
||||||
dismiss the alert box popped up for the error, try again. */
|
dismiss the alert box popped up for the error, try again. */
|
||||||
g_free(cf_name);
|
g_free(cf_name);
|
||||||
|
gtk_widget_show(GTK_WIDGET (fs));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The write succeeded; get rid of the file selection box. */
|
/* The write succeeded; get rid of the file selection box. */
|
||||||
gtk_widget_hide(GTK_WIDGET (fs));
|
|
||||||
gtk_widget_destroy(GTK_WIDGET (fs));
|
gtk_widget_destroy(GTK_WIDGET (fs));
|
||||||
|
|
||||||
/* Save the directory name for future file dialogs. */
|
/* Save the directory name for future file dialogs. */
|
||||||
|
|
Loading…
Reference in a new issue