aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-22 07:07:08 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-22 07:07:08 +0000
commitc0ad4beb9c2782baef7b7bcde0fc6b6e7a93b839 (patch)
treefd43ea59786cc611cc3b3f0e1e421f628fc13562 /gtk/capture_dlg.c
parentbd23f6f1a833873a580b2c1944695abe14fd0894 (diff)
Change some code that affects g_resolv_flags to set a flag if the check
box for the flag is active and clear it if it's inactive, rather than clearing all but RESOLV_CONCURRENT and then setting flags if the check box is active - or, in one case, not clearing any flags due to a typo and then setting them, so they never get cleared. This matches what's done with theresolution flags in some other places. svn path=/trunk/; revision=12375
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r--gtk/capture_dlg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 4d067edab7..8023e71cc9 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -1371,13 +1371,18 @@ capture_prep_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) {
capture_opts.show_info =
!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(hide_info_cb));
- g_resolv_flags |= g_resolv_flags & RESOLV_CONCURRENT;
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(m_resolv_cb)))
g_resolv_flags |= RESOLV_MAC;
+ else
+ g_resolv_flags &= ~RESOLV_MAC;
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(n_resolv_cb)))
g_resolv_flags |= RESOLV_NETWORK;
+ else
+ g_resolv_flags &= ~RESOLV_NETWORK;
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(t_resolv_cb)))
g_resolv_flags |= RESOLV_TRANSPORT;
+ else
+ g_resolv_flags &= ~RESOLV_TRANSPORT;
capture_opts.has_ring_num_files =
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(ringbuffer_nbf_cb));