Fix the wireless settings button for AirPCap devices in the
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 12 Sep 2011 13:13:08 +0000 (13:13 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 12 Sep 2011 13:13:08 +0000 (13:13 +0000)
Edit Interface dialog box.

Obtained from Irene Ruengeler.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38974 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/capture_dlg.c

index 119f88df5ede2167fa2e37ae297dfdc37d7b8234..0aed15b3093ad70e61c694ce87a1f77270bcd4fb 100644 (file)
@@ -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);