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
This commit is contained in:
Roland Knall 2022-05-10 16:50:36 +02:00
parent ae9e80a34d
commit 4977e20ab2
1 changed files with 6 additions and 0 deletions

View File

@ -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);