diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-05 13:27:18 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-05 13:27:18 +0000 |
commit | 011c03906550084967362b3bda855bc7d9ce33ae (patch) | |
tree | b1529ecc2ed5cd2199610d36cf03967c2031a524 /lib | |
parent | e7f83e4b1a218c74e017dbc4ab9b67e5cf1fcd38 (diff) | |
download | drakx-net-011c03906550084967362b3bda855bc7d9ce33ae.tar drakx-net-011c03906550084967362b3bda855bc7d9ce33ae.tar.gz drakx-net-011c03906550084967362b3bda855bc7d9ce33ae.tar.bz2 drakx-net-011c03906550084967362b3bda855bc7d9ce33ae.tar.xz drakx-net-011c03906550084967362b3bda855bc7d9ce33ae.zip |
net_applet/drakroam/draknetcenter: list current network on top of network list
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection_manager.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index a7bac80..113eaa9 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -220,7 +220,7 @@ sub filter_networks { my ($connection) = @_; $_->{configured} = $connection->network_is_configured($_) foreach values %{$connection->{networks}}; sort { - $b->{configured} <=> $a->{configured} || $b->{signal_strength} <=> $a->{signal_strength} || $a->{name} cmp $b->{name}; + $b->{current} <=> $a->{current} || $b->{configured} <=> $a->{configured} || $b->{signal_strength} <=> $a->{signal_strength} || $a->{name} cmp $b->{name}; } values %{$connection->{networks}}; } |