Plugins/Videomode/VideoHardware.py: remove DVI-PC when not DVI-PC modes are usable
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 5 Aug 2009 15:38:15 +0000 (17:38 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 5 Aug 2009 15:38:15 +0000 (17:38 +0200)
lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py

index 64f79e04e6295b07883e1bc091ce479b9d9cdeac..71529a037b569db725229b23bc12a56ab48dc5c6 100644 (file)
@@ -95,6 +95,10 @@ class VideoHardware:
 
                self.readAvailableModes()
 
 
                self.readAvailableModes()
 
+               if self.modes.has_key("DVI-PC") and not self.getModeList("DVI-PC"):
+                       print "remove DVI-PC because of not existing modes"
+                       del self.modes["DVI-PC"]
+
                self.createConfig()
 #              self.on_hotplug.append(self.createConfig)
 
                self.createConfig()
 #              self.on_hotplug.append(self.createConfig)