aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2016-12-29 10:20:01 +0100
committerRoland Knall <rknall@gmail.com>2016-12-29 12:09:54 +0000
commit255722c01ce7ffe42c4e8ff892f9493077a92229 (patch)
treebc3a7406454ac2fde0ff4040ef87770d8c23956a /ui/qt
parent7f576aab364cd17bbfc4694aada88a7c6ea34ca0 (diff)
Fix Interface Selection List
Fixes issue introduced with Ib82519362454094f64abf1cbe6d7bc917990d7ac Change-Id: I9fbf376c03f2ead1575ca30e8ff89dc36d99109f Reviewed-on: https://code.wireshark.org/review/19450 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/interface_sort_filter_model.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/qt/interface_sort_filter_model.cpp b/ui/qt/interface_sort_filter_model.cpp
index 0ea989e1bd..889278aa77 100644
--- a/ui/qt/interface_sort_filter_model.cpp
+++ b/ui/qt/interface_sort_filter_model.cpp
@@ -294,14 +294,17 @@ bool InterfaceSortFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex
{
#ifdef HAVE_PCAP_REMOTE
/* Remote interfaces have the if type IF_WIRED, therefore would be filtered, if not explicitly checked here */
- if ( ! _remoteDisplay || ! ((InterfaceTreeModel *)sourceModel())->isRemote(idx) )
+ if ( type != IF_WIRED || ! ((InterfaceTreeModel *)sourceModel())->isRemote(idx) )
#endif
return false;
}
#ifdef HAVE_PCAP_REMOTE
- if ( _remoteDisplay && ! ((InterfaceTreeModel *)sourceModel())->isRemote(idx) )
- return false;
+ if ( ((InterfaceTreeModel *)sourceModel())->isRemote(idx) )
+ {
+ if ( ! _remoteDisplay )
+ return false;
+ }
#endif
#endif