Fix crash when tab is closed after a per-domain forced reload

This commit is contained in:
Jay Kamat 2018-06-25 12:45:17 -04:00
parent fc19262eaa
commit da0a6305df
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -979,6 +979,9 @@ class WebEngineTab(browsertab.AbstractTab):
url: The QUrl to open.
predict: If set to False, predicted_navigation is not emitted.
"""
if sip.isdeleted(self._widget):
# https://github.com/qutebrowser/qutebrowser/issues/3896
return
self._saved_zoom = self.zoom.factor()
self._openurl_prepare(url, predict=predict)
self._widget.load(url)