diff --git a/js/ui/status/network.js b/js/ui/status/network.js index a5b8a14c7..48a7a1668 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -101,8 +101,13 @@ NMNetworkMenuItem.prototype = { accessPoints = sortAccessPoints(accessPoints); this.bestAP = accessPoints[0]; - let ssid = this.bestAP.get_ssid(); - title = title || NetworkManager.utils_ssid_to_utf8(ssid) || _(""); + if (!title) { + let ssid = this.bestAP.get_ssid(); + if (ssid) + title = NetworkManager.utils_ssid_to_utf8(ssid); + if (!title) + title = _(""); + } this._label = new St.Label({ text: title }); this.addActor(this._label);