Revert "Try to solve GSOD with Dreamexplorer after latest FileList changes"
authorlittlesat <littlesat99@yahoo.com>
Fri, 16 Jan 2015 10:00:09 +0000 (11:00 +0100)
committerlittlesat <littlesat99@yahoo.com>
Fri, 16 Jan 2015 10:00:09 +0000 (11:00 +0100)
This reverts commit 7560fdcfda8f1a4ae79e1480447124bf4df0df7d.

As we found a better method

lib/python/Components/FileList.py
lib/python/Components/PluginList.py
lib/python/Components/SelectionList.py

index 17f9935..a260fb0 100644 (file)
@@ -82,13 +82,12 @@ class FileList(MenuList):
                        self.name =  map(int, value.split(","))
                def setIcon(value):
                        self.icon = map(int, value.split(","))
-               if self.skinAttributes:
-                               for (attrib, value) in list(self.skinAttributes):
-                                       try:
-                                               locals().get(attrib)(value)
-                                               self.skinAttributes.remove((attrib, value))
-                                       except:
-                                               pass
+               for (attrib, value) in self.skinAttributes:
+                       try:
+                               locals().get(attrib)(value)
+                               self.skinAttributes.remove((attrib, value))
+                       except:
+                               pass
                self.l.setFont(0, self.itemFont)
                self.refreshMountpoints()
                self.changeDir(self.directory)
@@ -323,7 +322,7 @@ class MultiFileSelectList(FileList):
                        self.icon = map(int, value.split(","))
                def setLock(value):
                        self.lock = map(int, value.split(","))
-               for (attrib, value) in list(self.skinAttributes):
+               for (attrib, value) in self.skinAttributes:
                        try:
                                locals().get(attrib)(value)
                                self.skinAttributes.remove((attrib, value))
index 8e90fc4..4e3db5b 100644 (file)
@@ -86,7 +86,7 @@ class PluginList(MenuList):
                        p.icon = map(int, value.split(','))
                def setPluginIcon(value):
                        p.plicon = map(int, value.split(','))
-               for (attrib, value) in list(self.skinAttributes):
+               for (attrib, value) in self.skinAttributes:
                        try:
                                locals().get(attrib)(value)
                                self.skinAttributes.remove((attrib, value))
index b241ade..97c15e9 100644 (file)
@@ -25,7 +25,7 @@ class SelectionList(MenuList):
        def applySkin(self, desktop, parent):
                def font(value):
                        self.itemFont = parseFont(value, ((1,1),(1,1)))
-               for (attrib, value) in list(self.skinAttributes):
+               for (attrib, value) in self.skinAttributes:
                        try:
                                locals().get(attrib)(value)
                                self.skinAttributes.remove((attrib, value))