summaryrefslogtreecommitdiffstats
path: root/lib/network
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 /lib/network
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
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection_manager.pm2
1 files changed, 2 insertions, 0 deletions
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 {