From 7cd1fd1b92283096b240effe81069e3912bedec6 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 19 Jun 2012 18:11:46 +0200 Subject: Reopen the tabs lasting with "rekonq pages" (about urls, pdfs, etc..) WARNING: Needs testing... BUG: 302017 --- src/mainview.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mainview.cpp b/src/mainview.cpp index e3e82989..3ec838fd 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -452,13 +452,14 @@ void MainView::closeTab(int index, bool del) if (!tabToClose->url().isEmpty() && tabToClose->url().scheme() != QL1S("about") - && !tabToClose->page()->isOnRekonqPage() && !QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) ) { const int recentlyClosedTabsLimit = 8; TabHistory history(tabToClose->view()->history()); - + history.title = tabToClose->view()->title(); + history.url = tabToClose->url().url(); + m_recentlyClosedTabs.removeAll(history); if (m_recentlyClosedTabs.count() == recentlyClosedTabsLimit) m_recentlyClosedTabs.removeLast(); @@ -686,7 +687,8 @@ void MainView::restoreClosedTab(int i, bool inNewTab) ; history.applyHistory(view->history()); - + view->load(KUrl(history.url)); + // just to get sure... m_recentlyClosedTabs.removeAll(history); } -- cgit v1.2.1