summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-02-01 23:01:49 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-02-01 23:01:49 +0000
commitb0ad2bd982ff92d12d23702b5ce10d88ebdc692f (patch)
treede44ec957cc4bb8e0cad0efbf1a93b16dedc6907
parent96b19fe0a73163bbfdd4a1008e6ff68e4ec6a84d (diff)
downloaddrakx-net-b0ad2bd982ff92d12d23702b5ce10d88ebdc692f.tar
drakx-net-b0ad2bd982ff92d12d23702b5ce10d88ebdc692f.tar.gz
drakx-net-b0ad2bd982ff92d12d23702b5ce10d88ebdc692f.tar.bz2
drakx-net-b0ad2bd982ff92d12d23702b5ce10d88ebdc692f.tar.xz
drakx-net-b0ad2bd982ff92d12d23702b5ce10d88ebdc692f.zip
Sort wireless networks by signal level by default
-rw-r--r--NEWS1
-rw-r--r--lib/network/connection_manager.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3b30e01..36fd07a 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@
same user (if it's already running)
- Change prism54 wifi driver to p54pci/p54usb (#52018)
- Don't guess gateway and nameserver if not specified (#28033)
+- Sort wireless networks by signal level by default
0.86.1:
- ignore non-fatal wpa_supplicant messages (#54002)
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 827da6f..37c8606 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -320,6 +320,8 @@ sub create_networks_list {
my ($model, $column, $key, $iter, $data) = @_;
return $model->get($iter, 2) !~ /^\Q$key/i;
});
+ # Sort by signal level by default
+ $cmanager->{gui}{networks_list}->get_model->set_sort_column_id(2, 'descending');
}
sub select_network {