diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-15 22:54:44 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-15 22:54:44 +0000 |
commit | 59fbea1f3edd86d8c4d02a0d0dfd89e94eb738e6 (patch) | |
tree | df97c353133c6fdaa7aec8c70c7a4df1f3bad030 /gtk | |
parent | fb15accbf4dd65479fc48dc01a72835e6475ec05 (diff) |
Set the correct "monitor mode" button state.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32826 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/prefs_capture.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/prefs_capture.c b/gtk/prefs_capture.c index b94e1f2088..30f8f5de95 100644 --- a/gtk/prefs_capture.c +++ b/gtk/prefs_capture.c @@ -766,6 +766,13 @@ ifopts_edit_ifsel_cb(GtkTreeSelection *selection _U_, gtk_combo_box_set_active(GTK_COMBO_BOX(if_linktype_cb), selected); } free_if_capabilities(caps); +#ifdef HAVE_PCAP_CREATE + /* display the "monitor mode" button state from current interfaces selection */ + if (monitor_mode) + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(if_monitor_cb), TRUE); + else + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(if_monitor_cb), FALSE); +#endif } #ifdef HAVE_PCAP_CREATE else |