Bugfix by Anders Holst:
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 14 Dec 2009 09:27:38 +0000 (10:27 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 14 Dec 2009 09:27:38 +0000 (10:27 +0100)
A bug was detected in the recent recordpath patch. It could cause a
crash when using the green or yellow button to select a tag in the
movielist.

lib/python/Screens/MovieSelection.py

index 15f6b46..0468f8a 100644 (file)
@@ -398,7 +398,7 @@ class MovieSelection(Screen, HelpableScreen, SelectionEventInfo):
        def showTagsN(self, tagele):
                if not self.tags:
                        self.showTagWarning()
        def showTagsN(self, tagele):
                if not self.tags:
                        self.showTagWarning()
-               elif not tagele or tagele.value in self.selected_tags or not tagele.value in self.tags:
+               elif not tagele or (self.selected_tags and tagele.value in self.selected_tags) or not tagele.value in self.tags:
                        self.showTagsMenu(tagele)
                else:
                        self.selected_tags_ele = tagele
                        self.showTagsMenu(tagele)
                else:
                        self.selected_tags_ele = tagele