aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2015-06-20 13:53:14 +0200
committerGerald Combs <gerald@wireshark.org>2015-06-22 20:55:37 +0000
commit2e3629afea1ea6c5a31a6346361c7016ce9dde71 (patch)
tree2a602e3cb1548a4a0b221cdbbc6c3f7f802b3ed1 /ui
parentbe6fb606915f4ccc68a62195619d176cd62f79f9 (diff)
fix the interface list in the main welcome screen
when no interfaces are available at startup, the number of columns in the interface tree is set to 1 when new interfaces become available later, the column number is not reset to the default value and we end up with an interface list whose entries are not visible reset the number of columns each time the interface list is updated Change-Id: I267c5b47da6d5ae9e7769b1036622f79da4d97f2 Reviewed-on: https://code.wireshark.org/review/8996 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/interface_tree.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/interface_tree.cpp b/ui/qt/interface_tree.cpp
index 470ecc2728..6a04a24a64 100644
--- a/ui/qt/interface_tree.cpp
+++ b/ui/qt/interface_tree.cpp
@@ -170,6 +170,11 @@ void InterfaceTree::display()
return;
}
+ /* when no interfaces were available initially and an update of the
+ interface list called this function, the column count is set to 1
+ reset it to ensure that the interface list is properly displayed */
+ resetColumnCount();
+
for (guint i = 0; i < global_capture_opts.all_ifaces->len; i++) {
QList<int> *points;