From 4977e20ab26cf60c73b395b29710ee408b49e1bb Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Tue, 10 May 2022 16:50:36 +0200 Subject: [PATCH] Qt: Prevent remote interfaces to show up Remote interfaces should not be displayed with local interfaces as well as in the list of pipe interfaces --- ui/qt/manage_interfaces_dialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/qt/manage_interfaces_dialog.cpp b/ui/qt/manage_interfaces_dialog.cpp index c420383013..eeeadfbe8c 100644 --- a/ui/qt/manage_interfaces_dialog.cpp +++ b/ui/qt/manage_interfaces_dialog.cpp @@ -153,6 +153,9 @@ ManageInterfacesDialog::ManageInterfacesDialog(QWidget *parent) : proxyModel->setColumns(columns); proxyModel->setSourceModel(sourceModel); proxyModel->setFilterHidden(false); +#ifdef HAVE_PCAP_REMOTE + proxyModel->setRemoteDisplay(false); +#endif proxyModel->setFilterByType(false); ui->localView->setModel(proxyModel); @@ -165,6 +168,9 @@ ManageInterfacesDialog::ManageInterfacesDialog(QWidget *parent) : pipeProxyModel->setColumns(columns); pipeProxyModel->setSourceModel(sourceModel); pipeProxyModel->setFilterHidden(true); +#ifdef HAVE_PCAP_REMOTE + pipeProxyModel->setRemoteDisplay(false); +#endif pipeProxyModel->setFilterByType(true, true); pipeProxyModel->setInterfaceTypeVisible(IF_PIPE, false); ui->pipeView->setModel(pipeProxyModel);