summaryrefslogtreecommitdiff
path: root/qutebrowser/mainwindow/tabbedbrowser.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-12-22 14:29:15 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-12-22 14:29:15 +0100
commit1c9bb926c62abea0c8f11c35ca86d87ee896598c (patch)
treef894f686cf3481fd87f1eae8014c75d24eb6d13a /qutebrowser/mainwindow/tabbedbrowser.py
parentcd9c701a1b847d82cca673e3f3f943e64ea9c66b (diff)
downloadqutebrowser-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.py6
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: