bugfix to a bug reported by Stuart MacDonald (bug #12):

present main window before closing the program,
when asking to save the capture file first

svn path=/trunk/; revision=11366
This commit is contained in:
Ulf Lamping 2004-07-12 19:10:58 +00:00
parent e987a57bc3
commit 05232a7e22
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/* main.c
*
* $Id: main.c,v 1.456 2004/07/09 21:13:22 guy Exp $
* $Id: main.c,v 1.457 2004/07/12 19:10:58 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -831,6 +831,9 @@ main_window_delete_event_cb(GtkWidget *widget _U_, GdkEvent *event _U_, gpointer
gpointer dialog;
if((cfile.state != FILE_CLOSED) && !cfile.user_saved && prefs.gui_ask_unsaved) {
#if GTK_MAJOR_VERSION >= 2
gtk_window_present(GTK_WINDOW(top_level));
#endif
/* user didn't saved his current file, ask him */
dialog = simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTNS_YES_NO_CANCEL,
PRIMARY_TEXT_START "Save capture file before program quit?" PRIMARY_TEXT_END "\n\n"