summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-30 15:17:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-30 15:17:38 +0000
commitb8d631a3146e54954192547eda38ca6a14dd6d38 (patch)
treeddacc38c45b59fcba001c778fe04087483926421
parent8725df2f1d2b57143578ce8135fc5aa20bc18025 (diff)
downloaddrakx-backup-do-not-use-b8d631a3146e54954192547eda38ca6a14dd6d38.tar
drakx-backup-do-not-use-b8d631a3146e54954192547eda38ca6a14dd6d38.tar.gz
drakx-backup-do-not-use-b8d631a3146e54954192547eda38ca6a14dd6d38.tar.bz2
drakx-backup-do-not-use-b8d631a3146e54954192547eda38ca6a14dd6d38.tar.xz
drakx-backup-do-not-use-b8d631a3146e54954192547eda38ca6a14dd6d38.zip
network::netconnect::real_main() do not exit brutally on wizcancel, handle it in network::netconnect::main()
-rw-r--r--perl-install/network/netconnect.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 008ba7cb3..406d0e323 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1376,7 +1376,7 @@ Click on Ok to keep your configuration, or cancel to reconfigure your Internet &
mouse => $mouse,
intf => $intf,
};
- wizards->new->safe_process($wiz, $in);
+ wizards->new->process($wiz, $in);
}
# install needed packages:
@@ -1391,7 +1391,9 @@ sub main {
eval { real_main('', , $netcnx, $in, $modules_conf, $o_netc, $o_mouse, $o_intf, $o_first_time, $o_noauto) };
my $err = $@;
if ($err) { # && $in->isa('interactive::gtk')
- local $::isEmbedded = 0; # to prevent sub window embedding
+ $err =~ /wizcancel/ and $in->exit(0);
+
+ local $::isEmbedded = 0; # to prevent sub window embedding
local $::isWizard = 0 if !$::isInstall; # to prevent sub window embedding
#err_dialog(N("Error"), N("An unexpected error has happened:\n%s", $err));
$in->ask_warn(N("Error"), N("An unexpected error has happened:\n%s", $err));