diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-06-19 18:11:46 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-06-19 18:11:46 +0200 |
commit | 7cd1fd1b92283096b240effe81069e3912bedec6 (patch) | |
tree | e4410ab92c42c03d2fb476cd204f92cd900b72c6 | |
parent | rekonq 0.9.81 (diff) | |
download | rekonq-7cd1fd1b92283096b240effe81069e3912bedec6.tar.xz |
Reopen the tabs lasting with "rekonq pages" (about urls, pdfs, etc..)
WARNING: Needs testing...
BUG: 302017
-rw-r--r-- | src/mainview.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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); } |