aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-09-12 13:13:08 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-09-12 13:13:08 +0000
commitc21ae05d4f5030786613ec7b7da63dd50bba4487 (patch)
tree5792664eadaa149998b07a3714a719d09fe02994 /gtk
parenta757c16877a5b52443e44307c0ae824b19d01cb9 (diff)
Fix the wireless settings button for AirPCap devices in the
Edit Interface dialog box. Obtained from Irene Ruengeler. svn path=/trunk/; revision=38974
Diffstat (limited to 'gtk')
-rw-r--r--gtk/capture_dlg.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 119f88df5e..0aed15b309 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -2131,6 +2131,7 @@ void options_interface_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColum
/* Both the callback and the data are global */
g_signal_connect(advanced_bt,"clicked", G_CALLBACK(options_airpcap_advanced_cb),airpcap_tb);
g_object_set_data(G_OBJECT(top_level),AIRPCAP_OPTIONS_ADVANCED_KEY,advanced_bt);
+ airpcap_if_selected = get_airpcap_if_from_name(airpcap_if_list, interface_opts.name);
if(airpcap_if_selected != NULL) {
/* It is an airpcap interface */
gtk_widget_set_sensitive(advanced_bt,TRUE);
@@ -2705,11 +2706,6 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
free_interface_list(if_list);
g_object_set_data(G_OBJECT(cap_open_w), E_CAP_IFACE_KEY, view);
-#ifdef HAVE_AIRPCAP
- /* get the airpcap interface (if it IS an airpcap interface, and update the
- toolbar... and of course enable the advanced button...)*/
- /* airpcap_if_selected = get_airpcap_if_from_name(airpcap_if_list,interface_opts.name);*/
-#endif
main_hb = gtk_hbox_new(FALSE, 5);
gtk_container_set_border_width(GTK_CONTAINER(main_hb), 3);
gtk_box_pack_start(GTK_BOX(capture_vb), main_hb, FALSE, FALSE, 0);