From 82ac911018f1e111fbf099ced7036e32f87d1b4b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 23 Sep 2003 11:01:31 +0000 Subject: ensure ->kill kills all the open windows (fixes mke2fs failure causing $::WizardTable to be kept empty) --- perl-install/interactive/gtk.pm | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 88b110171..e348271f1 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -752,15 +752,9 @@ sub wait_message_endW { } sub kill { - my ($o) = @_; - $o->{before_killing} ||= 0; - - while (my $e = shift @tempory::objects) { $e->destroy } - while (@interactive::objects > $o->{before_killing}) { - my $w = pop @interactive::objects; - $w->destroy; - } - $o->{before_killing} = @interactive::objects; + my ($_o) = @_; + $_->destroy foreach $::WizardTable ? $::WizardTable->get_children : (), @tempory::objects, @interactive::objects; + @tempory::objects = @interactive::objects = (); } sub ok { -- cgit v1.2.1