From b794739d9450a8544abb8ae43d2368801226b18e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 22 Apr 2014 13:56:25 +0200 Subject: [PATCH] Remove unneeded assignment --- qutebrowser/widgets/browsertab.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qutebrowser/widgets/browsertab.py b/qutebrowser/widgets/browsertab.py index b982bb836..9ed0a3f3d 100644 --- a/qutebrowser/widgets/browsertab.py +++ b/qutebrowser/widgets/browsertab.py @@ -240,7 +240,6 @@ class BrowserTab(QWebView): if self._scroll_pos != new_pos: self._scroll_pos = new_pos logging.debug("Updating scroll position") - frame = self.page_.mainFrame() m = (frame.scrollBarMaximum(Qt.Horizontal), frame.scrollBarMaximum(Qt.Vertical)) perc = (round(100 * new_pos[0] / m[0]) if m[0] != 0 else 0,