diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-11-06 00:45:41 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-11-06 00:45:41 +0000 |
commit | 7646c6beb861c03603293a96948236c88acd80dc (patch) | |
tree | fdba903de158d4996b398ba881ed6a1133753ad0 | |
parent | 091aabbd6c912aa0f4b86182a1f1ddd669fca718 (diff) | |
download | wireshark-7646c6beb861c03603293a96948236c88acd80dc.tar.gz |
Set our font each time we fill in the tree instead of just once at
construction time. This fixes behavior broken by the recent startup
changes and should help us handle preference changes.
svn path=/trunk/; revision=45942
-rw-r--r-- | ui/qt/proto_tree.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index baee3b0e5b..180c87c8d6 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -152,7 +152,6 @@ ProtoTree::ProtoTree(QWidget *parent) : QTreeWidget(parent) { setAccessibleName(tr("Packet details")); - setFont(wsApp->monospaceFont()); setUniformRowHeights(true); connect(this, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), @@ -169,8 +168,8 @@ void ProtoTree::clear() { } void ProtoTree::fillProtocolTree(proto_tree *protocol_tree) { - // Clear out previous tree clear(); + setFont(wsApp->monospaceFont()); proto_tree_children_foreach(protocol_tree, proto_tree_draw_node, invisibleRootItem()); } |