parent
97d719b179
commit
2a4163b2c7
@ -455,7 +455,7 @@ class TabBar(QTabBar):
|
||||
"""
|
||||
icon = self.tabIcon(index)
|
||||
extent = self.style().pixelMetric(QStyle.PM_TabBarIconSize, None, self)
|
||||
if not icon:
|
||||
if icon.isNull():
|
||||
icon_width = 0
|
||||
else:
|
||||
icon_width = icon.actualSize(QSize(extent, extent)).width()
|
||||
|
Loading…
Reference in New Issue
Block a user