From ee81cb574848dccc43cb09bcd0d34a15cac45461 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 28 Mar 2012 18:42:23 +0000 Subject: (add_node) 'options' parameter is not mandatory --- Rpmdrake/gui.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 3a0ca976..51262b56 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -433,7 +433,7 @@ sub add_parent { } sub add_node { - my ($leaf, $root, $options) = @_; + my ($leaf, $root, $o_options) = @_; my $state = node_state($leaf) or return; if ($leaf) { my $iter; @@ -457,7 +457,7 @@ sub add_node { #- if leaf is void, we may create the parent and one child (to have the [+] in front of the parent in the ctree) #- though we use '' as the label of the child; then rpmdrake will connect on tree_expand, and whenever #- the first child has '' as the label, it will remove the child and add all the "right" children - $options->{nochild} or $w->{tree_model}->append_set($parent, [ $grp_columns{label} => '' ]); # test $leaf? + $o_options->{nochild} or $w->{tree_model}->append_set($parent, [ $grp_columns{label} => '' ]); # test $leaf? } } -- cgit v1.2.1