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
This commit is contained in:
Jakub Zawadzki 2013-07-19 17:31:32 +00:00
parent 57aebcf776
commit acdfb0eca6
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}