From db470f779b0c7fc562f93a53975f819194a69e87 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 13 Dec 2012 13:56:24 +0000 Subject: (create_widget) fix quitting app when closing "advanced" dialog (mga#1812) --- perl-install/interactive/gtk.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/interactive') diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 74dbad3fc..881bfc7e2 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -442,7 +442,11 @@ sub create_widget { $w = gtknew('HBox', children_tight => [ gtknew('Install_Button', text => $e->{text}, clicked => sub { - ask_fromW($o, { title => $common->{advanced_title} || $common->{title} || N("Advanced") }, $children) } + eval { ask_fromW($o, { title => $common->{advanced_title} || $common->{title} || N("Advanced") }, $children) }; + if (my $err = $@) { + die $err if $err !~ /^wizcancel/; + } + } ) ]); } elsif ($e->{type} =~ /list/) { -- cgit v1.2.1