Commit 8f61a338 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix strange code

parent 95d14e6c
Pipeline #58293 passed with stage
in 11 minutes and 53 seconds
......@@ -576,9 +576,7 @@ class WebView(WebKit2.WebView):
parsed.netloc):
webview.destroy()
return
if event != WebKit2.LoadEvent.FINISHED:
return
else:
if event == WebKit2.LoadEvent.FINISHED:
webview.disconnect_by_func(on_load_changed)
# Then popup blocking
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment