summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/network/drakroam.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index 73dff01..4bf01a6 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -115,7 +115,10 @@ sub update_networks {
my $interface = $droam->{connection}->get_interface;
my $connected = exists $routes->{$interface}{network};
- while (my ($ap, $network) = each(%{$droam->{connection}{networks}})) {
+ my @networks = values %{$droam->{connection}{networks}};
+ $droam->{filter_networks} and @networks = $droam->{filter_networks}(@networks);
+ foreach my $network (@networks) {
+ my $ap = $network->{ap};
push @{$droam->{gui}{networks_list}{data}}, [
$ap || $network->{name},
$network->{current} ? $connected ? $droam->{gui}{pixbufs}{state}{connected} : $droam->{gui}{pixbufs}{state}{refresh} : undef,