fix something
[enigma2.git] / lib / python / Components / ConditionalWidget.py
index 8d4af30a397147a84579dba6209c909ec9d8e223..3d855b2728e5dc694277aa030576851d7a5fa4ef 100644 (file)
@@ -57,11 +57,12 @@ class ConditionalWidget(Widget):
                if (self.conditionalFunction != None):
                        try:
                                self.conditionalFunction() # check, if the conditionalfunction is still valid
                if (self.conditionalFunction != None):
                        try:
                                self.conditionalFunction() # check, if the conditionalfunction is still valid
+                               self.activateCondition(self.conditionalFunction())
                        except:
                                self.conditionalFunction = None
                                self.activateCondition(False)
                        
                        except:
                                self.conditionalFunction = None
                                self.activateCondition(False)
                        
-                       self.activateCondition(self.conditionalFunction())
+