diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2011-03-25 19:58:57 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2011-03-29 15:43:58 +0200 |
| commit | 2c5e4d6c412c1988b32cb7dbede988bc9dfb815d (patch) | |
| tree | bee1e985d0b73ccd4ac6f541110bb9fea96969bf /lib/python/Plugins | |
| parent | 7f070068aa203cb95252b641b1c0cc5308a604ee (diff) | |
| download | enigma2-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.py | 10 |
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 |
