summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-16 02:24:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-16 02:24:14 +0200
commitb86685795a003e22f3e5a5c6e01f928acb729090 (patch)
tree35c1c32cfbdd1b5eb32bf8c3d01b2c369fdbaf71 /src/mainview.cpp
parentsome fixes on preview home page mechanism (diff)
downloadrekonq-b86685795a003e22f3e5a5c6e01f928acb729090.tar.xz
removed bugged closed tabs and implemented a simple tab switch
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp10
1 files changed, 1 insertions, 9 deletions
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();