From 02bf0401ab4c8247fa86935e8661a5e784f46a3e Mon Sep 17 00:00:00 2001 From: thuck Date: Sun, 19 Mar 2017 14:05:21 +0100 Subject: [PATCH] Last pinned to pinned_count --- qutebrowser/browser/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index e258ce135..b0c8dc9e9 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -226,9 +226,6 @@ class CommandDispatcher: selection_override = self._get_selection_override(prev, next_, opposite) - if tab.data.pinned: - tabbar.pinned -= 1 - if selection_override is None: self._tabbed_browser.close_tab(tab) else: @@ -237,6 +234,9 @@ class CommandDispatcher: self._tabbed_browser.close_tab(tab) tabbar.setSelectionBehaviorOnRemove(old_selection_behavior) + if tab.data.pinned: + tabbar.pinned_count -= 1 + @cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.argument('count', count=True) def tab_close(self, prev=False, next_=False, opposite=False,