diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index c3038ee71..fa010f9e2 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1031,14 +1031,10 @@ class CommandDispatcher: cur_idx = self._current_index() cmdutils.check_overflow(cur_idx, 'int') cmdutils.check_overflow(new_idx, 'int') - self._tabbed_browser.setUpdatesEnabled(False) - try: - color = self._tabbed_browser.tab_indicator_color(cur_idx) - self._tabbed_browser.tabBar().moveTab(cur_idx, new_idx) - self._set_current_index(new_idx) - self._tabbed_browser.set_tab_indicator_color(new_idx, color) - finally: - self._tabbed_browser.setUpdatesEnabled(True) + color = self._tabbed_browser.tab_indicator_color(cur_idx) + self._tabbed_browser.tabBar().moveTab(cur_idx, new_idx) + self._set_current_index(new_idx) + self._tabbed_browser.set_tab_indicator_color(new_idx, color) @cmdutils.register(instance='command-dispatcher', scope='window', maxsplit=0, no_replace_variables=True) diff --git a/tests/helpers/stubs.py b/tests/helpers/stubs.py index 627d77d62..dfbcc550d 100644 --- a/tests/helpers/stubs.py +++ b/tests/helpers/stubs.py @@ -586,7 +586,7 @@ class TabbedBrowserStub(QObject): del self.tabs[idx] def tabBar(self): - return QTabBar(self._qtabbar) + return self._qtabbar class ApplicationStub(QObject):