From 7646c6beb861c03603293a96948236c88acd80dc Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 6 Nov 2012 00:45:41 +0000 Subject: 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 --- ui/qt/proto_tree.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui') 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()); } -- cgit v1.2.1