From 5b6148514384517c7a3069e5ec3770dd1cd1d966 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 31 Mar 2011 18:03:50 +0200 Subject: [PATCH] NetworkMenu: fix parameters to _findConnection NMDevice._findConnection expects an uuid as parameter, but checkConnection was passing a NMConnection object. This caused exists to be always false, thus the connection was added again every time the 'updated' signal was emitted. https://bugzilla.gnome.org/show_bug.cgi?id=645702 --- 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 bd57ed759..ffcab09b2 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -424,7 +424,7 @@ NMDevice.prototype = { }, checkConnection: function(connection) { - let exists = this._findConnection(connection) != -1; + let exists = this._findConnection(connection._uuid) != -1; let valid = this.connectionValid(connection); if (exists && !valid) this.removeConnection(connection);