[gnome-shell] network: fix iterating connections in NMConnectionSection



commit 1b03e55cc32204c69e98f165f427a405f6a982e7
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Aug 18 19:52:12 2013 +0200

    network: fix iterating connections in NMConnectionSection
    
    Must compare the length of the array, not the array itself.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706262

 js/ui/status/network.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index c2a2686..fb84e32 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -187,7 +187,7 @@ const NMConnectionSection = new Lang.Class({
 
     _getStatus: function() {
         let values = this._connectionItems.values();
-        for (let i = 0; i < values; i++) {
+        for (let i = 0; i < values.length; i++) {
             let item = values[i];
             if (item.isActive())
                 return item.getName();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]