Helpviewer/HelpBrowserWV.py

branch
5_0_x
changeset 652
ea67a963d7f6
parent 385
dce841567a6c
child 756
49b238881de5
diff -r c637bce45821 -r ea67a963d7f6 Helpviewer/HelpBrowserWV.py
--- a/Helpviewer/HelpBrowserWV.py	Sun Oct 03 11:31:50 2010 +0200
+++ b/Helpviewer/HelpBrowserWV.py	Sun Oct 03 18:11:13 2010 +0200
@@ -210,6 +210,10 @@
         try:
             if extension == QWebPage.ErrorPageExtension:
                 info = sip.cast(option, QWebPage.ErrorPageExtensionOption)
+                if info.error == 102:
+                    # this is something of a hack; hopefully it will work in the future
+                    return False
+                
                 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn)
                 urlString = bytes(info.url.toEncoded()).decode()
                 html = notFoundPage_html
@@ -938,7 +942,6 @@
                 self.connect(dlg, SIGNAL("done()"), self.__downloadDone)
                 self.__downloadWindows.append(dlg)
                 dlg.show()
-            self.setUrl(self.url())
         else:
             replyUrl = reply.url()
             if replyUrl.isEmpty():

eric ide

mercurial