aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/NetworkSetup.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-03 17:40:33 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-03 17:40:33 +0000
commite25af60135ef62fca82147f64a584d4c781b5356 (patch)
treece78d8648a0cf511cf1ea12966e546753855f700 /lib/python/Screens/NetworkSetup.py
parent566fe2380a408e2572d068a3e79d003428a9c69a (diff)
downloadenigma2-e25af60135ef62fca82147f64a584d4c781b5356.tar.gz
enigma2-e25af60135ef62fca82147f64a584d4c781b5356.zip
fix deathscreen when opening wlan network list (ssid list) and the currently
used ssid is not found
Diffstat (limited to 'lib/python/Screens/NetworkSetup.py')
-rw-r--r--lib/python/Screens/NetworkSetup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py
index 8bffaf72..a3f39d67 100644
--- a/lib/python/Screens/NetworkSetup.py
+++ b/lib/python/Screens/NetworkSetup.py
@@ -172,7 +172,10 @@ class AdapterSetup(Screen, ConfigListScreen):
self.nwlist.append("No Networks found")
wsconfig = self.ws.loadConfig()
- config.plugins.wlan.essid = NoSave(ConfigSelection(self.nwlist, default = self.essid or wsconfig['ssid'] ))
+ default = self.essid or wsconfig['ssid']
+ if default not in self.nwlist:
+ self.nwlist.append(default)
+ config.plugins.wlan.essid = NoSave(ConfigSelection(self.nwlist, default = default ))
config.plugins.wlan.encryption.enabled = NoSave(ConfigYesNo(default = wsconfig['encryption'] ))
config.plugins.wlan.encryption.type = NoSave(ConfigSelection(list, default = wsconfig['encryption_type'] ))
config.plugins.wlan.encryption.psk = NoSave(ConfigText(default = wsconfig['key'], fixed_size = False,visible_width = 30))