mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
This commit is contained in:
parent
6b95a357eb
commit
5b61485143
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue