Merge branch 'bug_617_default_favlist_handling_fix'
[enigma2.git] / lib / python / Components / ParentalControl.py
index 63b5ccfb8ab088fad861c5d32c94034a9ca51d30..0ea65cd2cf1c7e70e86b78ef03e6e8c044ea9610 100644 (file)
@@ -21,6 +21,8 @@ IMG_BLACKSERVICE = LIST_BLACKLIST + "-" + TYPE_SERVICE
 IMG_BLACKBOUQUET = LIST_BLACKLIST + "-" + TYPE_BOUQUET
 
 def InitParentalControl():
+       global parentalControl
+       parentalControl = ParentalControl()
        config.ParentalControl = ConfigSubsection()
        config.ParentalControl.configured = ConfigYesNo(default = False)
        config.ParentalControl.mode = ConfigSelection(default = "simple", choices = [("simple", _("simple")), ("complex", _("complex"))])
@@ -320,4 +322,3 @@ class ParentalControl:
                self.openListFromFile(LIST_BLACKLIST)
                self.openListFromFile(LIST_WHITELIST)
 
-parentalControl = ParentalControl()