From 5a9f0c24b407a4fddff2ac1a29357a8fc94a4d5e Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 19 Aug 2013 23:14:15 +0200 Subject: [PATCH] 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 --- js/ui/status/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 376cb2c91..20157f4fa 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -352,12 +352,12 @@ const NMConnectionDevice = new Lang.Class({ _getStatus: function() { if (!this._device) - return null; + return ''; switch(this._device.state) { case NetworkManager.DeviceState.DISCONNECTED: case NetworkManager.DeviceState.ACTIVATED: - return null; + return ''; case NetworkManager.DeviceState.UNMANAGED: /* 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) */