diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-10 01:08:53 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-10 01:08:53 +0100 |
commit | 0ab1faf73ca662e21b191550d01d9c039dcc086c (patch) | |
tree | 5225248837684b5618c96f67167e09670c565c4f /src/mainwindow.cpp | |
parent | xss attach prevention. (diff) | |
parent | Rewrite NewTabPage to use QWebElement for page generation (diff) | |
download | rekonq-0ab1faf73ca662e21b191550d01d9c039dcc086c.tar.xz |
Merge commit 'refs/merge-requests/65' of git://gitorious.org/rekonq/mainline into r65
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6186ebea..e772baf1 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1179,11 +1179,8 @@ bool MainWindow::newTabPage(const KUrl &url) ) { m_loadingNewTabPage = true; - kDebug() << "loading home: " << url; - WebView *w = currentTab(); - NewTabPage p; - QString html = p.newTabPageCode(url); - w->setHtml(html, url); + NewTabPage p(currentTab()->page()); + p.generate(url); m_loadingNewTabPage = false; return true; } |