summaryrefslogtreecommitdiff
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-01-31 16:47:05 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-01-31 16:47:05 +0000
commitf3747bf63786cac3ebc8e13621c688a0c0451970 (patch)
tree2c0939b624e8ba0069f02e356438f1e86c755172 /capture_ui_utils.c
parent161eb8b6d7818d9094fa6141e50078d321dde7dd (diff)
downloadwireshark-f3747bf63786cac3ebc8e13621c688a0c0451970.tar.gz
Hide hidden devices in "Capture Interfaces" dialog.
Added a function to check for hidden devices, which also work correctly for plumbed devices on solaris. svn path=/trunk/; revision=24231
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? */