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 Owen W. Taylor
parent f4e6f7074e
commit 4dcbb84f06

View File

@ -837,7 +837,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() {