We should really do quit Ethereal if user asked us to do so with the -Q option!

Update the window title, right after the fixed capture finished. This might be required if the loading of the capture file afterwards just fails, leaving the title unchanged.

svn path=/trunk/; revision=16772
This commit is contained in:
Ulf Lamping 2005-12-13 02:09:14 +00:00
parent 21a9b08144
commit 1fe28ca017
1 changed files with 16 additions and 0 deletions

View File

@ -1478,6 +1478,12 @@ main_cf_cb_live_capture_update_finished(capture_file *cf)
/* Set up main window for a capture file. */
main_set_for_capture_file(TRUE);
if(capture_opts->quit_after_cap) {
/* command line asked us to quit after the capture */
/* don't pop up a dialog to ask for unsaved files etc. */
main_do_quit();
}
}
static void
@ -1525,8 +1531,18 @@ main_cf_cb_live_capture_fixed_finished(capture_file *cf _U_)
a capture. */
set_menus_for_capture_in_progress(FALSE);
/* Restore the standard title bar message */
/* (just in case we have trouble opening the capture file). */
set_main_window_name("The Ethereal Network Analyzer");
/* We don't have loaded the capture file, this will be done later.
* For now we still have simply a blank screen. */
if(capture_opts->quit_after_cap) {
/* command line asked us to quit after the capture */
/* don't pop up a dialog to ask for unsaved files etc. */
main_do_quit();
}
}
static void