aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/interface_tree.cpp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-07-21 16:14:53 -0700
committerGuy Harris <guy@alum.mit.edu>2014-07-21 23:15:49 +0000
commitd81a34cc24598778d3f8073cf85027a777cbbc10 (patch)
tree0f72dd37eb7584073d83c035c249fb7e7748b4c8 /ui/qt/interface_tree.cpp
parent48986f4fb9912c75da19c77151eaea92e372745c (diff)
Have the interface "tree" directly connect to ifListChanged.
Then have the capture interfaces dialog connect only *its* code to update *its* list of interfaces to ifListChanged, rather than connecting a routine that then emits interfaceListChanged. This makes it the responsibility of each widget that displays local interfaces to connect to the ifListChanged signal. Change-Id: Iff8e8ca4202c8784eed58c8f05175d986a16baea Reviewed-on: https://code.wireshark.org/review/3153 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/interface_tree.cpp')
-rw-r--r--ui/qt/interface_tree.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/interface_tree.cpp b/ui/qt/interface_tree.cpp
index 865d851c47..d725051cf6 100644
--- a/ui/qt/interface_tree.cpp
+++ b/ui/qt/interface_tree.cpp
@@ -65,6 +65,7 @@ InterfaceTree::InterfaceTree(QWidget *parent) :
resizeColumnToContents(0);
connect(wsApp, SIGNAL(appInitialized()), this, SLOT(getInterfaceList()));
+ connect(wsApp, SIGNAL(ifListChanged()), this, SLOT(interfaceListChanged()));
connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(updateSelectedInterfaces()));
}