summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-05-24 12:48:27 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-05-24 12:48:27 +0000
commit55e82bbb21c394f5d939a3b3827ceb99364554cb (patch)
tree15e5fd5a17cd4c5bff300967321634fae49bbaa8 /perl-install/standalone
parent26dca93c092195621debc83b46778fc4f9769959 (diff)
downloaddrakx-55e82bbb21c394f5d939a3b3827ceb99364554cb.tar
drakx-55e82bbb21c394f5d939a3b3827ceb99364554cb.tar.gz
drakx-55e82bbb21c394f5d939a3b3827ceb99364554cb.tar.bz2
drakx-55e82bbb21c394f5d939a3b3827ceb99364554cb.tar.xz
drakx-55e82bbb21c394f5d939a3b3827ceb99364554cb.zip
(build_notebook) simplify pull down menu filling and do not duplicate protocols
list
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 1c7b41e9c..dbcfe9533 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -364,7 +364,7 @@ sub build_notebook {
if ($is_ethernet) {
my $proto = $gui->{intf}{BOOTPROTO};
$proto->{protocols} = { static => N("static"), dhcp => N("DHCP") };
- $proto->set_popdown_strings(@{$proto->{protocols}}{qw(dhcp static)});
+ $proto->set_popdown_strings(values %{$proto->{protocols}});
$proto->set_text($proto->{protocols}{$intf->{BOOTPROTO}});
foreach ($gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}, $gui->{netc}{GATEWAY}) {
$_->set_sensitive($intf->{BOOTPROTO} eq 'static' ? 1 : 0)