diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-03-14 10:01:23 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-03-14 10:01:23 +0100 |
commit | b2a80886268994545eb0d8b871b49d4c85b7af93 (patch) | |
tree | efc95356b53a1640a01f30913470aaa96ad758e3 | |
parent | 60de9523ba42d35dc2bf8e0ed5c1521ffbc9b7f5 (diff) | |
download | qutebrowser-b2a80886268994545eb0d8b871b49d4c85b7af93.tar.gz qutebrowser-b2a80886268994545eb0d8b871b49d4c85b7af93.zip |
Remove redundant check
We already have 'if only_one_tab_open' above.
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index da688367e..a96f6d583 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -513,8 +513,7 @@ class TabbedBrowser(QWidget): last_close_urlstr = urls[last_close].toString().rstrip('/') first_tab_urlstr = first_tab_url.toString().rstrip('/') last_close_url_used = first_tab_urlstr == last_close_urlstr - use_current_tab = (only_one_tab_open and no_history and - last_close_url_used) + use_current_tab = no_history and last_close_url_used entries = self.undo_stack[-depth] del self.undo_stack[-depth] |