diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-07-22 02:36:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-07-22 02:36:50 +0000 |
commit | b60660f8467cd471a859d4c6bc404b575be35be7 (patch) | |
tree | 441cfa3972bed8b19670df29c2b9246f387b1ff7 | |
parent | 0f1a2e8db02135823234867f8d207b1a40943c50 (diff) | |
download | control-center-b60660f8467cd471a859d4c6bc404b575be35be7.tar control-center-b60660f8467cd471a859d4c6bc404b575be35be7.tar.gz control-center-b60660f8467cd471a859d4c6bc404b575be35be7.tar.bz2 control-center-b60660f8467cd471a859d4c6bc404b575be35be7.tar.xz control-center-b60660f8467cd471a859d4c6bc404b575be35be7.zip |
use read_net_conf instead of load_conf, remove useless call to the old read_net_conf
-rwxr-xr-x | control-center | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/control-center b/control-center index 2ded28cd..426f12e8 100755 --- a/control-center +++ b/control-center @@ -467,8 +467,6 @@ my @menu_items = ( my ($menu, $factory) = create_factory_menu($window_global, @menu_items); -network::netconnect::read_net_conf('', $netcnx, $netc); - # to retrieve a path, one must prevent "accelerators completion": sub get_path { join('', map { my $i = $_; $i =~ s/_//; $i } @_) } @@ -493,7 +491,7 @@ sub update_profiles { my ($removing) = @_; my $done; $factory->delete_item(get_path("<main>", $shared_translations{profiles} . profile2menu($_))) foreach @profiles; - network::netconnect::load_conf($netcnx, $netc, $intf); #reread_net_conf(); + network::netconnect::read_net_conf($netcnx, $netc, $intf); @profiles = network::netconnect::get_profiles(); foreach my $prof (@profiles) { $factory->create_item([ $shared_translations{profiles} . profile2menu($prof), undef, sub { |