From 655259456cc2ed5ffe88855a27dbbc4640ba6e24 Mon Sep 17 00:00:00 2001 From: nowrep Date: Tue, 23 Apr 2013 10:01:40 +0200 Subject: [PATCH] Properly fix 5740873ed6 Previous commit introduced new bug, background tabs didn't have close buttons. --- src/lib/webview/tabbar.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/lib/webview/tabbar.cpp b/src/lib/webview/tabbar.cpp index e2a5d18e2..8f1215d7a 100644 --- a/src/lib/webview/tabbar.cpp +++ b/src/lib/webview/tabbar.cpp @@ -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 {