network: don't return null from NMConnectionDevice._getStatus()

StLabel complains set you set the text to NULL

https://bugzilla.gnome.org/show_bug.cgi?id=706262
This commit is contained in:
Giovanni Campagna 2013-08-19 23:14:15 +02:00
parent 0c12c072fa
commit 5a9f0c24b4

View File

@ -352,12 +352,12 @@ const NMConnectionDevice = new Lang.Class({
_getStatus: function() { _getStatus: function() {
if (!this._device) if (!this._device)
return null; return '';
switch(this._device.state) { switch(this._device.state) {
case NetworkManager.DeviceState.DISCONNECTED: case NetworkManager.DeviceState.DISCONNECTED:
case NetworkManager.DeviceState.ACTIVATED: case NetworkManager.DeviceState.ACTIVATED:
return null; return '';
case NetworkManager.DeviceState.UNMANAGED: case NetworkManager.DeviceState.UNMANAGED:
/* Translators: this is for network devices that are physically present but are not /* Translators: this is for network devices that are physically present but are not
under NetworkManager's control (and thus cannot be used in the menu) */ under NetworkManager's control (and thus cannot be used in the menu) */