summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 99ef6f7b0..ba784340c 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -469,7 +469,6 @@ sub _ask_from_list {
$list->moveto($_[0], 0, 0.5, 0);
};
-
ref $title && !@okcancel ?
$list->signal_connect(button_release_event => $leave) :
$list->signal_connect(button_press_event => sub { &$leave if $_[1]{type} =~ /^2/ });
@@ -524,10 +523,11 @@ sub _ask_from_list {
));
$o->sync; #- otherwise the moveto is not done
- map_index {
+ my $toselect; map_index {
$list->append($_);
- &$select($::i) if $def && $_ eq $def;
+ $toselect = $::i if $def && $_ eq $def;
} @$l;
+ &$select($toselect);
$list->grab_focus;
}