From 1b03e55cc32204c69e98f165f427a405f6a982e7 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sun, 18 Aug 2013 19:52:12 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index c2a2686a4..fb84e3219 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();