256 if info.error == 102: |
256 if info.error == 102: |
257 # this is something of a hack; hopefully it will work in the future |
257 # this is something of a hack; hopefully it will work in the future |
258 return False |
258 return False |
259 |
259 |
260 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) |
260 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) |
|
261 errorPage.baseUrl = info.url |
261 urlString = bytes(info.url.toEncoded()).decode() |
262 urlString = bytes(info.url.toEncoded()).decode() |
262 html = notFoundPage_html |
263 html = notFoundPage_html |
263 title = self.trUtf8("Error loading page: {0}").format(urlString) |
264 title = self.trUtf8("Error loading page: {0}").format(urlString) |
264 pixmap = qApp.style()\ |
265 pixmap = qApp.style()\ |
265 .standardIcon(QStyle.SP_MessageBoxWarning, None, self.parent())\ |
266 .standardIcon(QStyle.SP_MessageBoxWarning, None, self.parent())\ |