summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-02-01 23:07:55 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-02-01 23:07:55 +0000
commit4fa250af812bc8173a5d9cffd347051e44a64494 (patch)
treed59ea8a2ad8e2bb99303c241a85397bc4f4f1b42
parentb0ad2bd982ff92d12d23702b5ce10d88ebdc692f (diff)
downloaddrakx-net-4fa250af812bc8173a5d9cffd347051e44a64494.tar
drakx-net-4fa250af812bc8173a5d9cffd347051e44a64494.tar.gz
drakx-net-4fa250af812bc8173a5d9cffd347051e44a64494.tar.bz2
drakx-net-4fa250af812bc8173a5d9cffd347051e44a64494.tar.xz
drakx-net-4fa250af812bc8173a5d9cffd347051e44a64494.zip
Fix inverted wireless networks signal level sorting
-rw-r--r--NEWS1
-rw-r--r--lib/network/connection_manager.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 36fd07a..12cadf5 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@
- 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
+- Fix inverted wireless networks signal level sorting
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 37c8606..e6b2a83 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -304,7 +304,7 @@ sub create_networks_list {
my ($sortable, $iter_left, $iter_right) = @_;
my $s1 = $cmanager->{connection}{networks}{$sortable->get($iter_left, 0)}->{signal_strength};
my $s2 = $cmanager->{connection}{networks}{$sortable->get($iter_right, 0)}->{signal_strength};
- return $s2 <=> $s1;
+ return $s1 <=> $s2;
});
$cmanager->{gui}{networks_list}->get_column(3)->set_sort_column_id(3);
$cmanager->{gui}{networks_list}->get_model->set_sort_func (3, sub {