From e9979b17d3cdb934d708d6534b50e6453438f1a9 Mon Sep 17 00:00:00 2001 From: freesource Date: Tue, 28 Aug 2001 20:47:21 +0000 Subject: [PATCH] A little more tweaking so that $offset is undef when search_window closes. --- BootRoot/YardBox.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BootRoot/YardBox.pm b/BootRoot/YardBox.pm index 891d10d..b4a9cb5 100644 --- a/BootRoot/YardBox.pm +++ b/BootRoot/YardBox.pm @@ -1123,7 +1123,10 @@ sub search { $search_window->signal_connect("key_press_event", sub { my $event = pop @_; 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); $close_b->signal_connect("clicked", sub { + undef $offset; $search_window->destroy() if $search_window; } );