Delay showing the "renderer process killed" error page a bit

Sometimes, we get another error with "Renderer process was killed" and the data:
URL for the error page. This is probably because the renderer process wasn't
restarted yet. This hopefully helps.
This commit is contained in:
Florian Bruhin 2017-07-25 16:00:52 +02:00
parent 79c088d3a4
commit 3de0b15073

View File

@ -713,7 +713,7 @@ class TabbedBrowser(tabwidget.TabWidget):
error_page = jinja.render(
'error.html', title="Error loading {}".format(url_string),
url=url_string, error=msg, icon='')
QTimer.singleShot(0, lambda: tab.set_html(error_page))
QTimer.singleShot(100, lambda: tab.set_html(error_page))
log.webview.error(msg)
else:
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-58698