Hopefully fixed an issue with a destroyed C++ object in the HelpWebSearchWidget.

Sun, 28 Feb 2010 14:33:07 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 28 Feb 2010 14:33:07 +0000
changeset 129
3bc474738bf3
parent 128
13e96bd0f5a5
child 130
fcce4cc20d95

Hopefully fixed an issue with a destroyed C++ object in the HelpWebSearchWidget.

Helpviewer/OpenSearch/OpenSearchManager.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/OpenSearch/OpenSearchManager.py	Sun Feb 28 13:58:38 2010 +0000
+++ b/Helpviewer/OpenSearch/OpenSearchManager.py	Sun Feb 28 14:33:07 2010 +0000
@@ -18,6 +18,8 @@
 from .OpenSearchReader import OpenSearchReader
 from .OpenSearchWriter import OpenSearchWriter
 
+from E5Gui.E5Application import e5App
+
 from Utilities.AutoSaver import AutoSaver
 import Utilities
 import Preferences
@@ -36,6 +38,8 @@
         
         @param parent reference to the parent object (QObject)
         """
+        if parent is None:
+            parent = e5App()
         QObject.__init__(self, parent)
         
         self.__engines = {}

eric ide

mercurial