fix bug
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 25 Oct 2007 09:17:36 +0000 (09:17 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 25 Oct 2007 09:17:36 +0000 (09:17 +0000)
lib/python/Plugins/Extensions/MediaPlayer/plugin.py

index 2c9097f..46e2db2 100644 (file)
@@ -33,10 +33,11 @@ class MyPlayList(PlayList):
 class MediaPixmap(Pixmap):
        def applySkin(self, desktop):
                self.default_pixmap = None
 class MediaPixmap(Pixmap):
        def applySkin(self, desktop):
                self.default_pixmap = None
-               for (attrib, value) in self.skinAttributes:
-                       if attrib == "pixmap":
-                               self.default_pixmap = value
-                               break
+               if self.skinAttributes is not None:
+                       for (attrib, value) in self.skinAttributes:
+                               if attrib == "pixmap":
+                                       self.default_pixmap = value
+                                       break
                if self.default_pixmap is None:
                        self.default_pixmap = resolveFilename(SCOPE_SKIN_IMAGE, "no_coverArt.png")
                return Pixmap.applySkin(self, desktop)
                if self.default_pixmap is None:
                        self.default_pixmap = resolveFilename(SCOPE_SKIN_IMAGE, "no_coverArt.png")
                return Pixmap.applySkin(self, desktop)