diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-18 19:38:01 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-18 19:38:01 +0000 |
commit | fc696d5284750e3fde42ee8ee68888ba5f8a0e4e (patch) | |
tree | 680c67e3b35a1385f5cc999883a76cb6bf60a50e /lib | |
parent | 806944cb2cee5e9eeb74443da4c831813461715f (diff) | |
download | drakx-net-fc696d5284750e3fde42ee8ee68888ba5f8a0e4e.tar drakx-net-fc696d5284750e3fde42ee8ee68888ba5f8a0e4e.tar.gz drakx-net-fc696d5284750e3fde42ee8ee68888ba5f8a0e4e.tar.bz2 drakx-net-fc696d5284750e3fde42ee8ee68888ba5f8a0e4e.tar.xz drakx-net-fc696d5284750e3fde42ee8ee68888ba5f8a0e4e.zip |
use a changed callback to set provider
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/netconnect.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm index 6bbefe5..1aba4d3 100644 --- a/lib/network/netconnect.pm +++ b/lib/network/netconnect.pm @@ -202,13 +202,13 @@ sub real_main { }, name => sub { $net->{type}->get_type_name . "\n\n" . N("Please select your provider:") }, data => sub { - [ { type => "list", val => \$self->{provider_name}, separator => $providers_data[1], - list => [ N("Unlisted - edit manually"), sort(keys %{$providers_data[0]}) ], sort => 0 } ]; - }, - post => sub { - $self->_set_provider; - $get_next->("select_provider"); + [ { + type => "list", val => \$self->{provider_name}, separator => $providers_data[1], + list => [ N("Unlisted - edit manually"), sort(keys %{$providers_data[0]}) ], sort => 0, + changed => { $self->set_provider }, + } ]; }, + post => sub { $get_next->("select_provider") }, }, select_network => { |