summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-07-31 17:37:18 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-07-31 17:37:18 +0200
commitaad9aad70388c0b7e267ec340ffe963e742af69c (patch)
tree02b78609243e7a8d6b44ad54c3f2e6fd12d86dbd /src
parentLoad the adblock settings in background. (diff)
downloadrekonq-aad9aad70388c0b7e267ec340ffe963e742af69c.tar.xz
Restore history tab. Fix regression.
BUG: 322994
Diffstat (limited to 'src')
-rw-r--r--src/tabwindow/tabwidget.cpp8
1 files changed, 6 insertions, 2 deletions
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);
}