summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-03-16 16:54:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-03-25 09:28:44 +0200
commit2fcbe68fbc19614a053428bdc37d7c6a3c84e8c8 (patch)
treedee0c99417e1267aaec995e51040b301a0a5b645 /src/mainview.cpp
parentCheck if user has a default search engine set and eventually (diff)
downloadrekonq-2fcbe68fbc19614a053428bdc37d7c6a3c84e8c8.tar.xz
Add loadUrl API to mainwindow
- Get rid of unused NewBackTab enum - move loading url code to MainWindow class - Remove ThreadWeaver API. (And take it easy...) - Changed logic: calculate url BEFORE creating a tab... REVIEW:104326
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index ec838ff4..2da26db7 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -414,9 +414,9 @@ void MainView::cloneTab(int index)
return;
KUrl url = webTab(index)->url();
- QWebHistory * history = webTab(index)->view()->history();
+ QWebHistory* history = webTab(index)->view()->history();
- rApp->loadUrl(url, history, Rekonq::NewTab);
+ rApp->mainWindow()->loadUrl(url, Rekonq::NewTab, history);
}