Commit 68237a06 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix a crash

parent 09b1d8a0
......@@ -120,11 +120,11 @@ class WebViewArtwork:
# Save webview favicon
if surface is not None:
cache_exists = App().art.exists(uri, "favicon")
cached_width = 0
if cache_exists:
cached = App().art.get_favicon(uri, self.get_scale_factor())
cached_width = cached.get_width()
cached_width = 0
if cached is not None:
cached_width = cached.get_width()
favicon_width = surface.get_width()
if uri not in self.__favicon_width.keys() or (
favicon_width >= self.__favicon_width[uri] and
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