WebBrowser/PersonalInformationManager/PersonalInformationManager.py

changeset 6113
0cf5c9683a51
parent 6048
82ad8ec9548c
child 6118
da9e08920e7c
diff -r cc1fc199643b -r 0cf5c9683a51 WebBrowser/PersonalInformationManager/PersonalInformationManager.py
--- a/WebBrowser/PersonalInformationManager/PersonalInformationManager.py	Sun Feb 04 10:45:53 2018 +0100
+++ b/WebBrowser/PersonalInformationManager/PersonalInformationManager.py	Sun Feb 04 10:56:30 2018 +0100
@@ -231,17 +231,20 @@
         Public method to allow the personal information manager to connect to
         the page.
         
-        @param page reference to the web page (HelpWebPage)
+        @param page reference to the web page
+        @type WebBrowserPage
         """
-        page.loadFinished.connect(self.__pageLoadFinished)
+        page.loadFinished.connect(lambda ok:self.__pageLoadFinished(ok, page))
     
-    def __pageLoadFinished(self, ok):
+    def __pageLoadFinished(self, ok, page):
         """
         Private slot to handle the completion of a page load.
         
-        @param ok flag indicating a successful load (boolean)
+        @param ok flag indicating a successful load
+        @type bool
+        @param page reference to the web page object
+        @type WebBrowserPage
         """
-        page = self.sender()
         if page is None or not ok:
             return
         

eric ide

mercurial