Fixed an issue in the web browser that could potentially lead to a crash.

Fri, 19 Jul 2013 19:25:28 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 19 Jul 2013 19:25:28 +0200
changeset 2806
0dc655f1655d
parent 2805
7406a976508e
child 2807
73c38615aced

Fixed an issue in the web browser that could potentially lead to a crash.

Helpviewer/HelpWindow.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/HelpWindow.py	Fri Jul 19 19:24:33 2013 +0200
+++ b/Helpviewer/HelpWindow.py	Fri Jul 19 19:25:28 2013 +0200
@@ -2078,7 +2078,8 @@
             Preferences.setGeometry("HelpViewerGeometry", QByteArray())
         
         try:
-            del self.__class__.helpwindows[self.__class__.helpwindows.index(self)]
+            if self.fromEric or len(self.__class__.helpwindows) > 1:
+                del self.__class__.helpwindows[self.__class__.helpwindows.index(self)]
         except ValueError:
             pass
         

eric ide

mercurial