diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-19 23:50:46 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-19 23:50:46 +0000 |
| commit | 525a8afd5b9ef35328f44236f5861f88746ce414 (patch) | |
| tree | 1a9e35e4ccb94cb99f88195221e84a43eca447ee /lib/python | |
| parent | 510e3589439199cf032b1209f544a6786de9e8e6 (diff) | |
| download | enigma2-525a8afd5b9ef35328f44236f5861f88746ce414.tar.gz enigma2-525a8afd5b9ef35328f44236f5861f88746ce414.zip | |
don't reload list on movie delete
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/MovieList.py | 6 | ||||
| -rw-r--r-- | lib/python/Screens/MovieSelection.py | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index dfd419fb..666067fc 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -92,6 +92,12 @@ class MovieList(HTMLComponent, GUIComponent): self.load(self.root) self.l.setList(self.list) + def removeService(self, service): + for l in self.list[:]: + if l[0][0] == service: + self.list.remove(l) + self.l.setList(self.list) + def load(self, root): # this lists our root service, then building a # nice list diff --git a/lib/python/Screens/MovieSelection.py b/lib/python/Screens/MovieSelection.py index effb5389..f3754c20 100644 --- a/lib/python/Screens/MovieSelection.py +++ b/lib/python/Screens/MovieSelection.py @@ -52,13 +52,7 @@ class ChannelContextMenu(FixedMenu): if result == False: self.session.openWithCallback(self.close, MessageBox, _("Delete failed!"), MessageBox.TYPE_ERROR) else: - list = self.csel["list"] - currentIndex = list.getCurrentIndex() - list.moveDown() - if list.getCurrentIndex() == currentIndex: - currentIndex -= 1 - list.reload() - list.moveToIndex(currentIndex) + list = self.csel["list"].removeService(self.service) self.close() class MovieSelection(Screen): |
