Ignore RuntimeError because of deleted Question.

This commit is contained in:
Florian Bruhin 2015-02-25 23:12:23 +01:00
parent 31d9018fc4
commit 1d27dcca81

View File

@ -359,7 +359,12 @@ class BrowserPage(QWebPage):
To be used with functools.partial.
"""
if frame is cancelled_frame and feature == cancelled_feature:
question.abort()
try:
question.abort()
except RuntimeError:
# The question could already be deleted, e.g. because it was
# aborted after a loadStarted signal.
pass
def on_save_frame_state_requested(self, frame, item):
"""Save scroll position and zoom in history.