From ce804e4009e25cdb1226c006c41b7edfaab56e06 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 8 Oct 2010 13:42:52 +0200 Subject: [PATCH] fixes bug #592 don't activate the parental control setup protection if no pin is set --- data/startwizard.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/data/startwizard.xml b/data/startwizard.xml index 70a6e0dc..47d39e1e 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -145,7 +145,7 @@ config.ParentalControl.configured.save() - + from ParentalControlSetup import ParentalControlChangePin @@ -153,9 +153,15 @@ if self["list"].index == 0: self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin")) + + + -config.ParentalControl.setuppinactive.value = True +if config.ParentalControl.setuppin.value == "aaaa": + config.ParentalControl.setuppinactive.value = False +else: + config.ParentalControl.setuppinactive.value = True config.ParentalControl.setuppinactive.save() config.ParentalControl.servicepinactive.value = True config.ParentalControl.servicepinactive.save() -- 2.30.2