From: Stefan Pluecken Date: Fri, 8 Oct 2010 11:42:52 +0000 (+0200) Subject: fixes bug #592 X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=ce804e4009e25cdb1226c006c41b7edfaab56e06;ds=sidebyside fixes bug #592 don't activate the parental control setup protection if no pin is set --- diff --git a/data/startwizard.xml b/data/startwizard.xml index 70a6e0d..47d39e1 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()