summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive_gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/interactive_gtk.pm')
-rw-r--r--perl-install/interactive_gtk.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm
index f7e5020d9..58541304c 100644
--- a/perl-install/interactive_gtk.pm
+++ b/perl-install/interactive_gtk.pm
@@ -175,9 +175,9 @@ sub create_ctree {
for (my $c = $node; $c; $c = $c->row->parent) {
$tree->expand($c);
}
- foreach (0 .. $#l) {
- if ($tree->node_nth($_) == $node) {
- $tree->set_focus_row($_);
+ for (my $i = 0; $tree->node_nth($i); $i++) {
+ if ($tree->node_nth($i) == $node) {
+ $tree->set_focus_row($i);
last;
}
}