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