mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Properly fix 5740873ed6
Previous commit introduced new bug, background tabs didn't have close buttons.
This commit is contained in:
parent
812437ddcb
commit
655259456c
@ -55,7 +55,7 @@ TabBar::TabBar(QupZilla* mainClass, TabWidget* tabWidget)
|
||||
setElideMode(Qt::ElideRight);
|
||||
setDocumentMode(true);
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
//setTabsClosable(true);
|
||||
setTabsClosable(true);
|
||||
setMouseTracking(true);
|
||||
setMovable(true);
|
||||
|
||||
@ -239,13 +239,12 @@ QSize TabBar::tabSizeHint(int index) const
|
||||
}
|
||||
else {
|
||||
tryAdjusting = true;
|
||||
}
|
||||
|
||||
if (tabsClosable()) {
|
||||
// Hiding close buttons to save some space
|
||||
tabBar->setTabsClosable(false);
|
||||
|
||||
tabBar->showCloseButton(currentIndex());
|
||||
}
|
||||
if (tabsClosable()) {
|
||||
// Hiding close buttons to save some space
|
||||
tabBar->setTabsClosable(false);
|
||||
tabBar->showCloseButton(currentIndex());
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user