From 81f3abd40242e98c8522a2bd5e44b84c8fc0a69b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 15 Jul 2014 11:21:35 +0200 Subject: [PATCH] Remove unneeded tabInserted. --- qutebrowser/widgets/tabwidget.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qutebrowser/widgets/tabwidget.py b/qutebrowser/widgets/tabwidget.py index 55f337313..94c895c9a 100644 --- a/qutebrowser/widgets/tabwidget.py +++ b/qutebrowser/widgets/tabwidget.py @@ -184,16 +184,6 @@ class TabBar(QTabBar): continue p.drawControl(QStyle.CE_TabBarTab, tab) - def tabInserted(self, index): - """Extend tabInserted to set close button size policy. - - FIXME is this needed? - """ - super().tabInserted(index) - button = self.tabButton(index, QTabBar.RightSide) - if button is not None: - button.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored) - class TabBarStyle(QCommonStyle):