Helpviewer/HelpBrowserWV.py

branch
5_2_x
changeset 1948
8789c9075050
parent 1946
e0ab34b1f195
child 2092
987aa24ec704
equal deleted inserted replaced
1946:e0ab34b1f195 1948:8789c9075050
254 if extension == QWebPage.ErrorPageExtension: 254 if extension == QWebPage.ErrorPageExtension:
255 info = sip.cast(option, QWebPage.ErrorPageExtensionOption) 255 info = sip.cast(option, QWebPage.ErrorPageExtensionOption)
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
260 if info.domain == QWebPage.QtNetwork and \
261 info.error == QNetworkReply.OperationCanceledError and \
262 info.errorString == "eric5:No Error":
263 return False
259 264
260 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) 265 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn)
261 errorPage.baseUrl = info.url 266 errorPage.baseUrl = info.url
262 urlString = bytes(info.url.toEncoded()).decode() 267 urlString = bytes(info.url.toEncoded()).decode()
263 html = notFoundPage_html 268 html = notFoundPage_html

eric ide

mercurial