Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
6_1_x
changeset 5153
9805a6adb6a0
parent 4898
87f323577ce1
child 5389
9b1c800daff3
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Sun Sep 04 12:29:58 2016 +0200
+++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Fri Sep 09 19:04:13 2016 +0200
@@ -553,8 +553,9 @@
             keys.append("warning22.png")
         if not keys:
             keys.append("empty.png")
-        self.viewlist.item(index).setIcon(
-            UI.PixmapCache.getCombinedIcon(keys))
+        item = self.viewlist.item(index)
+        if item:
+            item.setIcon(UI.PixmapCache.getCombinedIcon(keys))
         self.viewlist.setCurrentRow(currentRow)
         self._checkActions(editor)
         

eric ide

mercurial