diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-09-21 11:23:44 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-09-21 11:24:50 +0200 |
commit | 90d16b596a74679177cacc12adc2c4c04405ed42 (patch) | |
tree | 8c4124ada5ba5022e33a90634628a6278f646045 | |
parent | b317038a01094136d06d4cb769b7755450b94f61 (diff) | |
download | qutebrowser-90d16b596a74679177cacc12adc2c4c04405ed42.tar.gz qutebrowser-90d16b596a74679177cacc12adc2c4c04405ed42.zip |
Add TabBarStyle TypeError workaround
(cherry picked from commit 434f6906f9088172494fa7e219a856d893ed55ba)
# Conflicts:
# doc/changelog.asciidoc
-rw-r--r-- | qutebrowser/mainwindow/tabwidget.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index c0c7ee2ad..42c31c97e 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -801,6 +801,11 @@ class TabBarStyle(QProxyStyle): ICON_PADDING = 4 + def __init__(self, style=None): + # "useless" override as WORKAROUND for + # https://www.riverbankcomputing.com/pipermail/pyqt/2023-September/045510.html + super().__init__(style) + def _base_style(self) -> QStyle: """Get the base style.""" style = self.baseStyle() |