From baedb13351c92deaf80c2b1bc012054c8cc69bdc Mon Sep 17 00:00:00 2001 From: acid-burn Date: Mon, 9 May 2011 11:03:39 +0200 Subject: [PATCH] Network.py: change network interface description name to old state. (LAN connection 1 -> Lan connection). refs #725 --- lib/python/Components/Network.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index eee5a702..32b8bdbe 100755 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -274,16 +274,16 @@ class Network: name = None if self.isWirelessInterface(iface): if iface not in self.wlan_interfaces: - self.wlan_interfaces.append(iface) name = _("WLAN connection") if len(self.wlan_interfaces): - name += " " + str(len(self.wlan_interfaces)) + name += " " + str(len(self.wlan_interfaces)+1) + self.wlan_interfaces.append(iface) else: if iface not in self.lan_interfaces: - self.lan_interfaces.append(iface) name = _("LAN connection") if len(self.lan_interfaces): - name += " " + str(len(self.lan_interfaces)) + name += " " + str(len(self.lan_interfaces)+1) + self.lan_interfaces.append(iface) return name def getFriendlyAdapterDescription(self, iface): -- 2.30.2