diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-12-18 15:36:17 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-12-18 20:12:23 +0100 |
commit | 3178fb3f2a2fd59d809bc3d9caad933752206254 (patch) | |
tree | 0f8f6fdb2898af86e948780cbcc58a30d6e9841e | |
parent | 64baebcf08b994b40f66830d46f807de430ffde3 (diff) | |
download | qutebrowser-3178fb3f2a2fd59d809bc3d9caad933752206254.tar.gz qutebrowser-3178fb3f2a2fd59d809bc3d9caad933752206254.zip |
Remove unneeded ignore_tabs_are_windows argument
This was originally introduced in 57adcea58740663a3bb01a155f19b72a4b0efe51
for #2162. However, support for Qt < 5.7.1 was dropped long ago in
a86170f45dbc56b62f33709f33a258a077afe6f4, so this can be removed.
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index f125a976d..50c9a1d5d 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -553,8 +553,7 @@ class TabbedBrowser(QWidget): self, url: QUrl = None, background: bool = None, related: bool = True, - idx: int = None, *, - ignore_tabs_are_windows: bool = False + idx: int = None, ) -> browsertab.AbstractTab: """Open a new tab with a given URL. @@ -573,8 +572,6 @@ class TabbedBrowser(QWidget): - Explicitly opened tabs are at the very right (related=False) idx: The index where the new tab should be opened. - ignore_tabs_are_windows: If given, never open a new window, even - with tabs.tabs_are_windows set. Return: The opened WebView instance. @@ -587,8 +584,7 @@ class TabbedBrowser(QWidget): prev_focus = QApplication.focusWidget() - if (config.val.tabs.tabs_are_windows and self.widget.count() > 0 and - not ignore_tabs_are_windows): + if config.val.tabs.tabs_are_windows and self.widget.count() > 0: window = mainwindow.MainWindow(private=self.is_private) window.show() tabbed_browser = objreg.get('tabbed-browser', scope='window', |