aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-03-25 19:58:57 +0100
committerAndreas Oberritter <obi@opendreambox.org>2011-03-29 15:43:58 +0200
commit2c5e4d6c412c1988b32cb7dbede988bc9dfb815d (patch)
treebee1e985d0b73ccd4ac6f541110bb9fea96969bf /lib/python/Plugins
parent7f070068aa203cb95252b641b1c0cc5308a604ee (diff)
downloadenigma2-2c5e4d6c412c1988b32cb7dbede988bc9dfb815d.tar.gz
enigma2-2c5e4d6c412c1988b32cb7dbede988bc9dfb815d.zip
fix some crashes during settings wizard
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index dc4e8c56..6ecbfd49 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -196,10 +196,12 @@ class VideoHardware:
print "saveMode", port, mode, rate
config.av.videoport.value = port
config.av.videoport.save()
- config.av.videomode[port].value = mode
- config.av.videomode[port].save()
- config.av.videorate[mode].value = rate
- config.av.videorate[mode].save()
+ if port in config.av.videomode:
+ config.av.videomode[port].value = mode
+ config.av.videomode[port].save()
+ if mode in config.av.videorate:
+ config.av.videorate[mode].value = rate
+ config.av.videorate[mode].save()
def isPortAvailable(self, port):
# fixme