From 6933710b3eab806151f6352d3b1a228fb72a3e96 Mon Sep 17 00:00:00 2001 From: acid-burn Date: Fri, 14 Nov 2008 08:24:36 +0100 Subject: [PATCH] small skin fix fix possible crash when leaving networksetup --- data/skin_default.xml | 4 ++-- lib/python/Components/Network.py | 1 + lib/python/Screens/NetworkSetup.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/skin_default.xml b/data/skin_default.xml index 41a7e4c9..993fd320 100755 --- a/data/skin_default.xml +++ b/data/skin_default.xml @@ -37,13 +37,13 @@ - + - + diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 7cc61d84..53b487d5 100755 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -63,6 +63,7 @@ class Network: def getDataForInterface(self, iface,callback): #get ip out of ip addr, as avahi sometimes overrides it in ifconfig. + self.Console = Console() cmd = "ip -o addr" self.Console.ePopen(cmd, self.IPaddrFinished, [iface,callback]) diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index 588a46ff..32e2dafd 100755 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py @@ -174,6 +174,7 @@ class NetworkAdapterSelection(Screen,HelpableScreen): def cleanup(self): iNetwork.stopLinkStateConsole() iNetwork.stopRestartConsole() + iNetwork.stopGetInterfacesConsole() def restartLan(self): iNetwork.restartNetwork(self.restartLanDataAvail) -- 2.30.2