From 022c8469993fdb4e53032e16cf7b8f72e94db669 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 3 Aug 2005 05:54:37 +0000 Subject: apply gateway modifications (#17260) --- perl-install/standalone/drakconnect | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index 2f2f7d78b..0c1ff1d7f 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -640,6 +640,7 @@ sub save { Glib::Timeout->add(200, sub { gtkflush(); + delete $net->{network}{GATEWAY}; foreach (keys %$p) { save_notebook($p->{$_}{intf}, $p->{$_}{gui}) or return; $p->{$_}{intf}{save} and $p->{$_}{intf}{save}->(); @@ -658,7 +659,9 @@ sub save { sub save_notebook { my ($intf, $gui) = @_; - $net->{$_} = $gui->{network}{$_}->get_text foreach keys %{$gui->{network}}; + if ($gui->{network}{GATEWAY}->is_sensitive && $gui->{network}{GATEWAY}->get_text) { + $net->{network}{GATEWAY} = $gui->{network}{GATEWAY}->get_text; + } $gui->{intf}{$_} and $intf->{$_} = $gui->{intf}{$_}->get_text foreach keys %{$gui->{intf}}; $gui->{intf_radio}{$_} and $intf->{$_} = $gui->{intf_radio}{$_} foreach keys %{$gui->{intf_radio}}; $intf->{$_} = bool2yesno($gui->{intf_bool}{$_}->get_active) foreach keys %{$gui->{intf_bool}}; -- cgit v1.2.1