Helpviewer/HelpBrowserWV.py

branch
5_2_x
changeset 1617
a4657d015cee
parent 1595
e95a7d864c6f
child 1669
0df81d254c64
equal deleted inserted replaced
1610:037b81858f5f 1617:a4657d015cee
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 259
260 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn) 260 errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn)
261 errorPage.baseUrl = info.url
261 urlString = bytes(info.url.toEncoded()).decode() 262 urlString = bytes(info.url.toEncoded()).decode()
262 html = notFoundPage_html 263 html = notFoundPage_html
263 title = self.trUtf8("Error loading page: {0}").format(urlString) 264 title = self.trUtf8("Error loading page: {0}").format(urlString)
264 pixmap = qApp.style()\ 265 pixmap = qApp.style()\
265 .standardIcon(QStyle.SP_MessageBoxWarning, None, self.parent())\ 266 .standardIcon(QStyle.SP_MessageBoxWarning, None, self.parent())\

eric ide

mercurial