From c83c9d96ae2780cc44373fb6c951753f32d059e1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 26 Nov 2016 13:33:38 +0100 Subject: [PATCH] Small cleanup --- qutebrowser/mainwindow/tabbedbrowser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index c5f0897ac..e613d1d9b 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -524,12 +524,11 @@ class TabbedBrowser(tabwidget.TabWidget): # If needed, re-open the tab as a workaround for QTBUG-54419. # See https://bugreports.qt.io/browse/QTBUG-54419 - background = self.currentIndex() != idx - if (tab.backend == usertypes.Backend.QtWebEngine and tab.needs_qtbug54419_workaround and url.isValid()): log.misc.debug("Doing QTBUG-54419 workaround for {}, " "url {}".format(tab, url)) + background = self.currentIndex() != idx self.setUpdatesEnabled(False) try: self.tabopen(url, background=background, idx=idx)