292 suggestedFileName) |
292 suggestedFileName) |
293 return True |
293 return True |
294 |
294 |
295 if extension == QWebPage.ErrorPageExtension: |
295 if extension == QWebPage.ErrorPageExtension: |
296 info = sip.cast(option, QWebPage.ErrorPageExtensionOption) |
296 info = sip.cast(option, QWebPage.ErrorPageExtensionOption) |
297 if info.error == 102: |
|
298 # this is something of a hack; hopefully it will work in |
|
299 # the future |
|
300 return False |
|
301 |
297 |
302 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) |
298 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) |
303 urlString = bytes(info.url.toEncoded()).decode() |
299 urlString = bytes(info.url.toEncoded()).decode() |
304 errorPage.baseUrl = info.url |
300 errorPage.baseUrl = info.url |
305 if info.domain == QWebPage.QtNetwork and \ |
301 if info.domain == QWebPage.QtNetwork and \ |