Browse Source

A little more tweaking so that $offset is undef when search_window closes.

master
freesource 24 years ago
parent
commit
e9979b17d3
  1. 6
      BootRoot/YardBox.pm

6
BootRoot/YardBox.pm

@ -1123,7 +1123,10 @@ sub search {
$search_window->signal_connect("key_press_event", sub { $search_window->signal_connect("key_press_event", sub {
my $event = pop @_; my $event = pop @_;
if ($event->{'keyval'}) { if ($event->{'keyval'}) {
$search_window->destroy if $event->{'keyval'} == 65307; if ($event->{'keyval'} == 65307) {
$search_window->destroy;
undef $offset;
}
} }
}, },
); );
@ -1359,6 +1362,7 @@ sub search {
my $close_b = button(2,3,3,4,"Cancel",$table_search); my $close_b = button(2,3,3,4,"Cancel",$table_search);
$close_b->signal_connect("clicked", $close_b->signal_connect("clicked",
sub { sub {
undef $offset;
$search_window->destroy() $search_window->destroy()
if $search_window; if $search_window;
} ); } );

Loading…
Cancel
Save