diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-12-13 02:09:14 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-12-13 02:09:14 +0000 |
commit | 1fe28ca017f23d12b615e1f83fb8064203fa57a8 (patch) | |
tree | 1bac5623a680a79f182c4e55b9ef7b51252902e5 | |
parent | 21a9b08144a1adf3bd25b5ac5cd554ff54fb5b24 (diff) | |
download | wireshark-1fe28ca017f23d12b615e1f83fb8064203fa57a8.tar.gz wireshark-1fe28ca017f23d12b615e1f83fb8064203fa57a8.tar.bz2 wireshark-1fe28ca017f23d12b615e1f83fb8064203fa57a8.zip |
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
-rw-r--r-- | gtk/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/main.c b/gtk/main.c index 42972861f9..e39144ab28 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -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 |