From aad9aad70388c0b7e267ec340ffe963e742af69c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 31 Jul 2013 17:37:18 +0200 Subject: Restore history tab. Fix regression. BUG: 322994 --- src/tabwindow/tabwidget.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tabwindow') diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp index 3b06350d..59943423 100644 --- a/src/tabwindow/tabwidget.cpp +++ b/src/tabwindow/tabwidget.cpp @@ -655,7 +655,7 @@ void TabWidget::closeTab(int index, bool del) } if (!tabToClose->url().isEmpty() - && tabToClose->url().scheme() != QL1S("rekonq") +// && tabToClose->url().scheme() != QL1S("rekonq") && !tabToClose->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) ) { @@ -823,8 +823,12 @@ void TabWidget::restoreClosedTab(int index, bool inNewTab) tab = currentWebWindow(); } - tab->load(u); + // apply history again + history.applyHistory(tab->page()->history()); + if (u.scheme() == QL1S("rekonq")) + tab->load(u); + // just to get sure... m_recentlyClosedTabs.removeAll(history); } -- cgit v1.2.1