diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-03-16 16:54:26 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-03-25 09:28:44 +0200 |
commit | 2fcbe68fbc19614a053428bdc37d7c6a3c84e8c8 (patch) | |
tree | dee0c99417e1267aaec995e51040b301a0a5b645 /src/mainview.cpp | |
parent | Check if user has a default search engine set and eventually (diff) | |
download | rekonq-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.cpp | 4 |
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); } |