network: fix modem connected state check

There is no CONNECTED state for devices, it's ACTIVATED.

https://bugzilla.gnome.org/show_bug.cgi?id=650124
This commit is contained in:
Dan Williams 2011-05-12 13:07:30 -05:00 committed by Dan Winship
parent 63b1699a35
commit 4b3fbc4c9b

View File

@ -838,7 +838,7 @@ NMDeviceModem.prototype = {
},
get connected() {
return this._enabled && this.device.state == NetworkManager.DeviceState.CONNECTED;
return this._enabled && this.device.state == NetworkManager.DeviceState.ACTIVATED;
},
destroy: function() {