diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-12-22 14:29:15 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-12-22 14:29:15 +0100 |
commit | 1c9bb926c62abea0c8f11c35ca86d87ee896598c (patch) | |
tree | f894f686cf3481fd87f1eae8014c75d24eb6d13a /qutebrowser/mainwindow/tabbedbrowser.py | |
parent | cd9c701a1b847d82cca673e3f3f943e64ea9c66b (diff) | |
download | qutebrowser-1c9bb926c62abea0c8f11c35ca86d87ee896598c.tar.gz qutebrowser-1c9bb926c62abea0c8f11c35ca86d87ee896598c.zip |
Ignore tabs.last_close with tabs.tabs_are_windows
Closes #5695
Supersedes #5771
Diffstat (limited to 'qutebrowser/mainwindow/tabbedbrowser.py')
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index c67e5fa0e..78eb864a6 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -411,7 +411,11 @@ class TabbedBrowser(QWidget): add_undo: Whether the tab close can be undone. new_undo: Whether the undo entry should be a new item in the stack. """ - last_close = config.val.tabs.last_close + if config.val.tabs.tabs_are_windows: + last_close = 'close' + else: + last_close = config.val.tabs.last_close + count = self.widget.count() if last_close == 'ignore' and count == 1: |