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() |