fix stupid code
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 10 Jul 2007 19:31:08 +0000 (19:31 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 10 Jul 2007 19:31:08 +0000 (19:31 +0000)
lib/python/Screens/Ci.py

index 32cc6fe..b6f315b 100644 (file)
@@ -235,8 +235,8 @@ class CiMessageHandler:
                                        print "no session"
 
        def dlgClosed(self, slot):
-               del self.dlgs[slot]
-               self.dlgs.remove(slot)
+               if slot in self.dlgs:
+                       del self.dlgs[slot]
 
        def registerCIMessageHandler(self, slot, func):
                self.unregisterCIMessageHandler(slot)