summaryrefslogtreecommitdiff
path: root/ui/gtk
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-07-19 17:31:32 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-07-19 17:31:32 +0000
commitacdfb0eca658a07333d00c03d230c0bad0fbb151 (patch)
treecb30ca099b8ff87b989155d169ef562a92dd58df /ui/gtk
parent57aebcf7764e6b3e54ba43a4ed4a30fa92c5cdb2 (diff)
downloadwireshark-acdfb0eca658a07333d00c03d230c0bad0fbb151.tar.gz
Fix gtk warnings when clicking on some byte on byte pane.
When we don't have path don't check for subtrees. (Originally report by Jeff on https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8908#c17) XXX, we could create a path pointing on begin of tree - but do we want to do it? svn path=/trunk/; revision=50740
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/packet_panes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/packet_panes.c b/ui/gtk/packet_panes.c
index baa66149f6..fcc9bb2978 100644
--- a/ui/gtk/packet_panes.c
+++ b/ui/gtk/packet_panes.c
@@ -252,14 +252,14 @@ expand_tree(GtkTreeView *tree_view, GtkTreeIter *iter,
* Nodes with "finfo->tree_type" of -1 have no ett_ value, and
* are thus presumably leaf nodes and cannot be expanded.
*/
- if (finfo->tree_type != -1) {
+ if (finfo->tree_type != -1)
tree_expanded_set(finfo->tree_type, TRUE);
+ if (finfo->tree_type != -1 && path) {
/* Expand any subtrees that the user had left open */
g_signal_handlers_block_by_func(tree_view, expand_tree, NULL);
check_expand_trees(tree_view, model, path, iter, FALSE, FALSE);
g_signal_handlers_unblock_by_func(tree_view, expand_tree, NULL);
-
}
}