diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-07-14 20:53:53 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-07-15 03:54:21 +0000 |
commit | 1ac7de58c7c2d5c030fe0202e8e76bff8608624e (patch) | |
tree | 4b98d05bc7298f5b4c910c12633ded254b8fb5e1 /ui | |
parent | 4f1b8d74338ca2a6ded8498e9d87cbc3294454c0 (diff) |
Resize the name column every time we re-display the interface tree.
Interfaces can appear and disappear, changing the maximum length of the
interface name column; resize it each time we reconstruct the tree.
Change-Id: I38b40f6c3ce51272e8bbb0c7f7fbaa7255886e0e
Reviewed-on: https://code.wireshark.org/review/9641
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/interface_tree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/interface_tree.cpp b/ui/qt/interface_tree.cpp index 7e1c91a74a..91301463dd 100644 --- a/ui/qt/interface_tree.cpp +++ b/ui/qt/interface_tree.cpp @@ -207,6 +207,7 @@ void InterfaceTree::display() #endif addTopLevelItem(ti); // XXX Add other device information + resizeColumnToContents(IFTREE_COL_NAME); resizeColumnToContents(IFTREE_COL_STATS); #if HAVE_EXTCAP |