aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-01-31 16:47:05 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-01-31 16:47:05 +0000
commita3f5a200e7387d548f0893f3192576ab7435de83 (patch)
tree2c0939b624e8ba0069f02e356438f1e86c755172 /capture_ui_utils.c
parente34eec1560db36bdda172ab88e60c92bc690664e (diff)
Hide hidden devices in "Capture Interfaces" dialog.
Added a function to check for hidden devices, which also work correctly for plumbed devices on solaris. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24231 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r--capture_ui_utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c
index aaa20eeb79..0c58a0ccd1 100644
--- a/capture_ui_utils.c
+++ b/capture_ui_utils.c
@@ -226,9 +226,7 @@ build_capture_combo_list(GList *if_list, gboolean do_hide)
/* Is this interface hidden and, if so, should we include it
anyway? */
- if (prefs.capture_devices_hide == NULL ||
- strstr(prefs.capture_devices_hide, if_info->name) == NULL ||
- !do_hide) {
+ if (!prefs_is_capture_device_hidden(if_info->name) || !do_hide) {
/* It's not hidden, or it is but we should include it in the list. */
/* Do we have a user-supplied description? */