aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-21 22:48:09 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-21 22:48:09 +0000
commit172101b6a15dae4ce5438babfde1f8301262fea8 (patch)
tree4dc1f1ca448f87e685ce098761c4c53e902b0202 /lib/python/Components
parent0da52198b0394f88e10945d74bff75bf340960b1 (diff)
downloadenigma2-172101b6a15dae4ce5438babfde1f8301262fea8.tar.gz
enigma2-172101b6a15dae4ce5438babfde1f8301262fea8.zip
clear list of previous found services when a new servicescan starts
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/FIFOList.py4
-rw-r--r--lib/python/Components/ServiceScan.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/Components/FIFOList.py b/lib/python/Components/FIFOList.py
index 16b51c89..4adf6aff 100644
--- a/lib/python/Components/FIFOList.py
+++ b/lib/python/Components/FIFOList.py
@@ -10,3 +10,7 @@ class FIFOList(MenuList):
self.list.append(item)
self.list = self.list[-self.len:]
self.l.setList(self.list)
+
+ def clear(self):
+ del self.list[:]
+ self.l.setList(self.list)
diff --git a/lib/python/Components/ServiceScan.py b/lib/python/Components/ServiceScan.py
index b4c47a75..0e23d344 100644
--- a/lib/python/Components/ServiceScan.py
+++ b/lib/python/Components/ServiceScan.py
@@ -78,6 +78,7 @@ class ServiceScan:
self.updatePass()
self.scan.statusChanged.get().append(self.scanStatusChanged)
self.scan.newService.get().append(self.newService)
+ self.servicelist.clear()
self.state = self.Running
err = self.scan.start(self.feid, self.flags)
if err: