summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-05 14:16:11 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-05 14:16:11 +0000
commit31c2b31865db748d99441c94682b5fd64b2dbed1 (patch)
tree82e3080d68b3d09c75b555ac6c31d712c38601d3
parenta8501294dbd2ccaba323bfa6cc09e38ecdd1c677 (diff)
downloaddrakx-net-31c2b31865db748d99441c94682b5fd64b2dbed1.tar
drakx-net-31c2b31865db748d99441c94682b5fd64b2dbed1.tar.gz
drakx-net-31c2b31865db748d99441c94682b5fd64b2dbed1.tar.bz2
drakx-net-31c2b31865db748d99441c94682b5fd64b2dbed1.tar.xz
drakx-net-31c2b31865db748d99441c94682b5fd64b2dbed1.zip
update networks list on connection status change
-rwxr-xr-xlib/network/netcenter.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index 73de185..3577014 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -124,7 +124,12 @@ sub main {
my ($status, $interface) = $msg->get_args_list;
my $cmanager = find { $_->{connection}->get_interface eq $interface } @cmanagers
or return;
- network::connection_manager::update_on_status_change($cmanager);
+ #- FIXME: factorize in update_on_status_change() and check why update_networks() calls update_on_status_change()
+ if ($cmanager->{connection}->can('get_networks') && !$cmanager->{connection}->network_scan_is_slow) {
+ network::connection_manager::update_networks($cmanager);
+ } else {
+ network::connection_manager::update_on_status_change($cmanager);
+ }
}
});
$dbus->{connection}->add_match("type='signal',interface='com.mandriva.network'");