Helpviewer/HelpBrowserWV.py

changeset 1615
bf0fc9794f33
parent 1596
8d59e4f3c828
child 1647
30be422ac04b
--- a/Helpviewer/HelpBrowserWV.py	Sat Feb 11 16:17:25 2012 +0100
+++ b/Helpviewer/HelpBrowserWV.py	Sun Feb 12 16:51:07 2012 +0100
@@ -261,6 +261,7 @@
                 
                 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn)
                 urlString = bytes(info.url.toEncoded()).decode()
+                errorPage.baseUrl = info.url
                 html = notFoundPage_html
                 title = self.trUtf8("Error loading page: {0}").format(urlString)
                 pixmap = qApp.style()\
@@ -284,7 +285,8 @@
                                 "or proxy, make sure that the browser is permitted to "
                                 "access the network."),
                     self.trUtf8("If your cache policy is set to offline browsing,"
-                                "only pages in the local cache are available.")
+                                "only pages in the local cache are available."),
+                    self.trUtf8("Try Again")
                 ).encode("utf8"))
                 return True
         except AttributeError:
@@ -1565,7 +1567,8 @@
                         "proxy, make sure that the browser is permitted to access "
                         "the network."),
             self.trUtf8("If your cache policy is set to offline browsing,"
-                        "only pages in the local cache are available.")
+                        "only pages in the local cache are available."),
+            self.trUtf8("Try Again")
         )
         notFoundFrame.setHtml(html, replyUrl)
         self.mw.historyManager().removeHistoryEntry(replyUrl, self.title())

eric ide

mercurial