Helpviewer/HelpBrowserWV.py

changeset 1950
4f004ec74b48
parent 1947
84626f18f2c3
child 1952
af4103f0e93f
equal deleted inserted replaced
1947:84626f18f2c3 1950:4f004ec74b48
305 html = html.replace("@IMAGE@", "qrc:icons/adBlockPlus64.png") 305 html = html.replace("@IMAGE@", "qrc:icons/adBlockPlus64.png")
306 html = html.replace("@TITLE@", title.encode("utf8")) 306 html = html.replace("@TITLE@", title.encode("utf8"))
307 html = html.replace("@MESSAGE@", message.encode("utf8")) 307 html = html.replace("@MESSAGE@", message.encode("utf8"))
308 errorPage.content = html 308 errorPage.content = html
309 return True 309 return True
310
311 if info.domain == QWebPage.QtNetwork and \
312 info.error == QNetworkReply.OperationCanceledError and \
313 info.errorString == "eric5:No Error":
314 return False
310 315
311 title = self.trUtf8("Error loading page: {0}").format(urlString) 316 title = self.trUtf8("Error loading page: {0}").format(urlString)
312 htmlFile = QFile(":/html/notFoundPage.html") 317 htmlFile = QFile(":/html/notFoundPage.html")
313 htmlFile.open(QFile.ReadOnly) 318 htmlFile.open(QFile.ReadOnly)
314 html = htmlFile.readAll() 319 html = htmlFile.readAll()

eric ide

mercurial