Previous commit introduced new bug, background tabs didn't have close
buttons.
remotes/origin/falkon
nowrep 13 years ago
parent 812437ddcb
commit 655259456c
  1. 13
      src/lib/webview/tabbar.cpp

@ -55,7 +55,7 @@ TabBar::TabBar(QupZilla* mainClass, TabWidget* tabWidget)
setElideMode(Qt::ElideRight); setElideMode(Qt::ElideRight);
setDocumentMode(true); setDocumentMode(true);
setFocusPolicy(Qt::NoFocus); setFocusPolicy(Qt::NoFocus);
//setTabsClosable(true); setTabsClosable(true);
setMouseTracking(true); setMouseTracking(true);
setMovable(true); setMovable(true);
@ -239,13 +239,12 @@ QSize TabBar::tabSizeHint(int index) const
} }
else { else {
tryAdjusting = true; tryAdjusting = true;
}
if (tabsClosable()) { if (tabsClosable()) {
// Hiding close buttons to save some space // Hiding close buttons to save some space
tabBar->setTabsClosable(false); tabBar->setTabsClosable(false);
tabBar->showCloseButton(currentIndex());
tabBar->showCloseButton(currentIndex());
}
} }
} }
else { else {

Loading…
Cancel
Save