From b86685795a003e22f3e5a5c6e01f928acb729090 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 16 Oct 2009 02:24:14 +0200 Subject: removed bugged closed tabs and implemented a simple tab switch --- src/mainview.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index a0b0c6e7..8c6ba19b 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -181,8 +181,6 @@ void MainView::clear() // What exactly do we need to clear here? m_urlBar->clearHistory(); m_urlBar->clear(); - - m_recentlyClosedTabs.clear(); } @@ -200,6 +198,7 @@ void MainView::slotReloadTab(int index) } +// this slot is called on tab switching void MainView::slotCurrentChanged(int index) { // retrieve the webview related to the index @@ -415,7 +414,6 @@ void MainView::slotCloseTab(int index) return; } hasFocus = tab->hasFocus(); - m_recentlyClosedTabs.prepend(tab->url()); } QWidget *webView = widget(index); @@ -575,12 +573,6 @@ QLabel *MainView::animatedLoading(int index, bool addMovie) } -KUrl::List MainView::recentlyClosedTabs() -{ - return m_recentlyClosedTabs; -} - - void MainView::resizeEvent(QResizeEvent *event) { updateTabBar(); -- cgit v1.2.1