From b83a299bfdfb1695ed714836b121ee3bd02ceecc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Sep 2018 20:23:01 +0530 Subject: [PATCH] Remove call to read_data() as it no longer exists --- src/calibre/gui2/tweak_book/live_css.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/calibre/gui2/tweak_book/live_css.py b/src/calibre/gui2/tweak_book/live_css.py index cb37e81c1a..ff515a4250 100644 --- a/src/calibre/gui2/tweak_book/live_css.py +++ b/src/calibre/gui2/tweak_book/live_css.py @@ -473,16 +473,8 @@ class LiveCSS(QWidget): # error in the web view self.start_update_timer() return - if self.now_showing == (None, None, None) or self.now_showing[0] != self.current_name: - self.clear() - return - # Try to refresh the data for the currently shown tag instead - # of clearing - editor_name, sourceline, tags = self.now_showing - data = self.read_data(sourceline, tags) - if data is None or len(data['computed_css']) < 1: - self.clear() - return + self.clear() + return self.now_showing = (editor_name, sourceline, tags) data['html_name'] = editor_name self.box.show_data(data)