Fixed an issue in listspace.py causing a traceback when shutting down with an externally modified file.

Fri, 09 Sep 2016 19:04:13 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 09 Sep 2016 19:04:13 +0200
changeset 5152
e685f2398a95
parent 5151
0a5906c38bfd
child 5154
0a86d976fef5

Fixed an issue in listspace.py causing a traceback when shutting down with an externally modified file.

Plugins/ViewManagerPlugins/Listspace/Listspace.py file | annotate | diff | comparison | revisions
README.rst file | annotate | diff | comparison | revisions
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Wed Sep 07 18:48:09 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)
         
--- a/README.rst	Wed Sep 07 18:48:09 2016 +0200
+++ b/README.rst	Fri Sep 09 19:04:13 2016 +0200
@@ -42,7 +42,7 @@
 
 1.1 Installation on Windows®
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-**Note:** This section is valid for PyQt4 and PyQt5 befor 5.7.0.
+**Note:** This section is valid for PyQt4 and PyQt5 before 5.7.0.
 
 Installing eric6 on Windows® is even easier. Just download the PyQt5
 installer from Riverbank Computing and use it to install PyQt5. This includes

eric ide

mercurial