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:28:03 +0000 (10:28 +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 15f6b465c62fa0a21a819db6c624a7785cf1532a..0468f8a010fc72f5f12b869cdfb8cb55a9626361 100644 (file)
@@ -398,7 +398,7 @@ class MovieSelection(Screen, HelpableScreen, SelectionEventInfo):
        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