From 48b25611c94d380b40948a3de0bfab5678668e1d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 25 Mar 2009 00:47:24 +0100 Subject: Huge update. Fixed quite all of the settings troubles.. From now on, we (mainly) go on WebView bugfixing.. --- src/mainview.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index a39c40b1..a1eed467 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -89,11 +89,17 @@ MainView::~MainView() } -void MainView::viewTabBar() +void MainView::showTabBar() { bool always = ReKonfig::alwaysShowTabBar(); if(always == true) + { + if( m_tabBar->isHidden() ) + { + m_tabBar->show(); + } return; + } if( m_tabBar->count() == 1 ) { @@ -391,7 +397,7 @@ WebView *MainView::newTab(bool makeCurrent) currentChanged(currentIndex()); emit tabsChanged(); - viewTabBar(); + showTabBar(); return webView; } @@ -447,7 +453,7 @@ void MainView::closeOtherTabs(int index) for (int i = index - 1; i >= 0; --i) closeTab(i); - viewTabBar(); + showTabBar(); } @@ -461,7 +467,7 @@ void MainView::cloneTab(int index) WebView *tab = newTab(false); tab->setUrl( webView(index)->url() ); - viewTabBar(); + showTabBar(); } @@ -505,7 +511,7 @@ void MainView::closeTab(int index) if (count() == 0) emit lastTabClosed(); - viewTabBar(); + showTabBar(); } -- cgit v1.2.1