summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-25 00:47:24 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-25 00:47:24 +0100
commit48b25611c94d380b40948a3de0bfab5678668e1d (patch)
tree30348cee350d258ba86724858dcc098b3615eb9c /src/mainview.cpp
parentFixed notFound.html page (diff)
downloadrekonq-48b25611c94d380b40948a3de0bfab5678668e1d.tar.xz
Huge update. Fixed quite all of the settings troubles..
From now on, we (mainly) go on WebView bugfixing..
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp16
1 files changed, 11 insertions, 5 deletions
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();
}