From 8213be93bcfded0bfc338c82728df2ae29aaa40d Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Sun, 9 Feb 2003 01:32:51 +0000 Subject: corrected expert case to restart network and if the user choose not to restart the network, end the dialog normally. --- perl-install/network/netconnect.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 5ddfef1eb..f888ab208 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -231,8 +231,8 @@ If you don't want to use the auto detection, deselect the checkbox. network::configureNetwork2($in, $prefix, $netc, $intf); my $network_configured = 1; - eval { if ($netconnect::need_restart_network && $::isStandalone and ($::expert or $in->ask_yesorno(N("Network configuration"), - N("The network needs to be restarted"), 1) or goto step_2)) { + eval { if ($netconnect::need_restart_network && $::isStandalone and (!$::expert or $in->ask_yesorno(N("Network configuration"), + N("The network needs to be restarted"), 1))) { if (!run_program::rooted($prefix, "/etc/rc.d/init.d/network restart")) { $success = 0; $in->ask_okcancel(N("Network Configuration"), -- cgit v1.2.1