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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 09 Sep 2016 19:04:13 +0200
branch
6_1_x
changeset 5153
9805a6adb6a0
parent 5139
6a35d307e49f
child 5155
c343f780dc6d

Fixed an issue in listspace.py causing a traceback when shutting down with an externally modified file.
(grafted from e685f2398a95e0b546bbbed0252b38f5d0b79d89)

Plugins/ViewManagerPlugins/Listspace/Listspace.py file | annotate | diff | comparison | revisions
README.rst file | annotate | diff | comparison | revisions
--- 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)
         
--- a/README.rst	Sun Sep 04 12:29:58 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