summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-26 17:43:22 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-26 17:43:22 +0000
commit98889c2dd8042d6d8cf6a985623013399915cfb2 (patch)
tree72954c6af6378698662fe193999e1a44251fbd96
parent8a9f231a72d757386b2c9626821e95b725096e77 (diff)
downloaddrakx-net-98889c2dd8042d6d8cf6a985623013399915cfb2.tar
drakx-net-98889c2dd8042d6d8cf6a985623013399915cfb2.tar.gz
drakx-net-98889c2dd8042d6d8cf6a985623013399915cfb2.tar.bz2
drakx-net-98889c2dd8042d6d8cf6a985623013399915cfb2.tar.xz
drakx-net-98889c2dd8042d6d8cf6a985623013399915cfb2.zip
do not hide wait message early when scanning networks
-rw-r--r--lib/network/connection_manager.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 0fc6913..fae09c3 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -274,7 +274,6 @@ sub update_networks {
if ($cmanager->{connection}) {
my $wait = $cmanager->{connection}->network_scan_is_slow && $cmanager->{in}->wait_message('', N("Scanning for networks..."));
$cmanager->{connection}{networks} = $cmanager->{connection}->get_networks;
- undef $wait;
$cmanager->{connection}{network} ||= find { $cmanager->{connection}{networks}{$_}{current} } keys %{$cmanager->{connection}{networks}};
my $routes = network::tools::get_routes();
@@ -298,6 +297,8 @@ sub update_networks {
my $index = eval { find_index { $_->[0] eq $cmanager->{connection}{network} } @{$cmanager->{gui}{networks_list}{data}} };
$cmanager->{gui}{networks_list}->select($index) if defined $index;
}
+
+ undef $wait;
}
update_on_status_change($cmanager);