start scan on execBegin to fix missing self.scan when window was non-execing
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 18 Jul 2007 13:05:20 +0000 (13:05 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 18 Jul 2007 13:05:20 +0000 (13:05 +0000)
lib/python/Components/ServiceScan.py

index 0e23d34..93af4e6 100644 (file)
@@ -56,8 +56,6 @@ class ServiceScan:
                self.scanList = scanList
                self.run = 0
                
                self.scanList = scanList
                self.run = 0
                
-               self.doRun()
-               
        def doRun(self):
                self.scan = eComponentScan()
                
        def doRun(self):
                self.scan = eComponentScan()
                
@@ -75,6 +73,7 @@ class ServiceScan:
                        self.passNumber.setText(_("pass") + " " + str(self.run + 1) + "/" + str(size) + " (" + _("Tuner") + " " + str(self.scanList[self.run]["feid"]) + ")")
                
        def execBegin(self):
                        self.passNumber.setText(_("pass") + " " + str(self.run + 1) + "/" + str(size) + " (" + _("Tuner") + " " + str(self.scanList[self.run]["feid"]) + ")")
                
        def execBegin(self):
+               self.doRun()
                self.updatePass()
                self.scan.statusChanged.get().append(self.scanStatusChanged)
                self.scan.newService.get().append(self.newService)
                self.updatePass()
                self.scan.statusChanged.get().append(self.scanStatusChanged)
                self.scan.newService.get().append(self.newService)