summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-06-19 18:11:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-06-19 18:11:46 +0200
commit7cd1fd1b92283096b240effe81069e3912bedec6 (patch)
treee4410ab92c42c03d2fb476cd204f92cd900b72c6 /src
parentrekonq 0.9.81 (diff)
downloadrekonq-7cd1fd1b92283096b240effe81069e3912bedec6.tar.xz
Reopen the tabs lasting with "rekonq pages" (about urls, pdfs, etc..)
WARNING: Needs testing... BUG: 302017
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp8
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);
}