Made the code of the web browser tab widget more robust.

Sun, 19 Jul 2015 17:04:14 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 19 Jul 2015 17:04:14 +0200
changeset 4321
28d39909a480
parent 4320
ccc70fb94c64
child 4322
b4163b6ae674

Made the code of the web browser tab widget more robust.

Helpviewer/HelpTabWidget.py file | annotate | diff | comparison | revisions
diff -r ccc70fb94c64 -r 28d39909a480 Helpviewer/HelpTabWidget.py
--- a/Helpviewer/HelpTabWidget.py	Sun Jul 19 17:03:41 2015 +0200
+++ b/Helpviewer/HelpTabWidget.py	Sun Jul 19 17:04:14 2015 +0200
@@ -680,7 +680,7 @@
         """
         browser = self.sender()
         
-        if browser is not None:
+        if browser is not None and isinstance(browser, QWidget):
             index = self.indexOf(browser)
             if title == "":
                 title = browser.url().toString()
@@ -787,7 +787,7 @@
         """
         browser = self.sender()
         
-        if browser is not None:
+        if browser is not None and isinstance(browser, QWidget):
             import Helpviewer.HelpWindow
             self.setTabIcon(
                 self.indexOf(browser),

eric ide

mercurial