From 3aab58b17eec73d3a7134650ec059c31f51bd108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Thu, 8 Mar 2012 07:40:20 -0500 Subject: Include Tab History when Cloning a Tab Implemented through a new loadUrl method that allows for the caller to specify the QWebHistory pointer from where to copy the history. Redirected the original loadUrl slot to use this new method internally. The method returns the WebTab * just in case we need to maninpulate the created tab in the future. REVIEW: 104082 --- src/mainview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index 19e5531d..9fa4d049 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -414,8 +414,9 @@ void MainView::cloneTab(int index) return; KUrl url = webTab(index)->url(); + QWebHistory * history = webTab(index)->view()->history(); - rApp->loadUrl(url, Rekonq::NewTab); + rApp->loadUrl(url, history, Rekonq::NewTab); } -- cgit v1.2.1