aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-27 17:21:24 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-28 00:21:53 +0000
commit3f49e897f674008c27de9833b8ba2d119dc22ef4 (patch)
tree99849e6a9b334fde27e527eb5ff7c84b98c07fa1 /ui/gtk/main.c
parent72d9785cfc0d1d7e2eeebc05997d0efcec5dfa7f (diff)
Pull quit_after_cap out of the global capture options.
Really, all the GUI-related options should be pulled out, so they're not cluttering up dumpcap and tshark. Change-Id: I0276dee2be48bae3498a819d8c0c2747fe1352e7 Reviewed-on: https://code.wireshark.org/review/16180 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r--ui/gtk/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 623b092493..20f5c2af6f 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -1508,7 +1508,7 @@ main_capture_cb_capture_update_finished(capture_session *cap_session)
}
gtk_window_set_icon_list(GTK_WINDOW(top_level), icon_list);
- if(global_capture_opts.quit_after_cap) {
+ if(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();
@@ -1562,7 +1562,7 @@ main_capture_cb_capture_fixed_finished(capture_session *cap_session _U_)
/* We don't have loaded the capture file, this will be done later.
* For now we still have simply a blank screen. */
- if(global_capture_opts.quit_after_cap) {
+ if(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();
@@ -1614,7 +1614,7 @@ main_capture_cb_capture_failed(capture_session *cap_session _U_)
gtk_window_set_icon_list(GTK_WINDOW(top_level), icon_list);
- if(global_capture_opts.quit_after_cap) {
+ if(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();