network: Make sure not to checkConnection on the wireless section
As the wireless section does not contain checkConnection.
This commit is contained in:
parent
c77c01e437
commit
f74567fbab
@ -1571,9 +1571,10 @@ const NMApplet = new Lang.Class({
|
||||
this._vpnSection.checkConnection(connection);
|
||||
} else {
|
||||
let devices = this._devices[section].devices;
|
||||
for (let i = 0; i < devices.length; i++) {
|
||||
devices[i].checkConnection(connection);
|
||||
}
|
||||
devices.forEach(function(wrapper) {
|
||||
if (wrapper instanceof NMConnectionSection)
|
||||
wrapper.checkConnection(connection);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user