mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
TabBar: Don't return -1 when not visible in pixelMetric
Fixes tabs sometimes being invisible when leaving fullscreen Correct fix for #1967
This commit is contained in:
parent
953c52e73d
commit
2d90afc503
@ -274,9 +274,6 @@ QSize TabBar::tabSizeHint(int index, bool fast) const
|
||||
|
||||
int TabBar::comboTabBarPixelMetric(ComboTabBar::SizeType sizeType) const
|
||||
{
|
||||
if (!isVisible())
|
||||
return -1;
|
||||
|
||||
switch (sizeType) {
|
||||
case ComboTabBar::PinnedTabWidth:
|
||||
return iconButtonSize().width() + style()->pixelMetric(QStyle::PM_TabBarTabHSpace, 0, this);
|
||||
|
Loading…
Reference in New Issue
Block a user