From f0b55360c6ba8da48098362aa85ca88fa293b5a1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 11 Oct 2009 11:57:33 +0200 Subject: Restored recently closed tabs I'm not a big fan of this implementation, but modifying history for this is impossible (no sense) and storing it somewhere.. don't know Perhaps someone has some better ideas here :) --- src/mainview.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index 0abf6996..3c78a0f6 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -179,6 +179,8 @@ void MainView::clear() // What exactly do we need to clear here? m_urlBar->clearHistory(); m_urlBar->clear(); + + m_recentlyClosedTabs.clear(); } @@ -411,6 +413,7 @@ void MainView::slotCloseTab(int index) return; } hasFocus = tab->hasFocus(); + m_recentlyClosedTabs.prepend(tab->url()); } QWidget *webView = widget(index); @@ -569,3 +572,9 @@ QLabel *MainView::animatedLoading(int index, bool addMovie) m_tabBar->setTabButton(index, QTabBar::LeftSide, label); return label; } + + +KUrl::List MainView::recentlyClosedTabs() +{ + return m_recentlyClosedTabs; +} -- cgit v1.2.1