summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-12-09 17:12:38 +0100
committermatgic78 <matgic78@gmail.com>2009-12-09 17:12:38 +0100
commit66836b1ca6d8d5dfcdf4d48dabc51b7709d6e456 (patch)
tree7d827b6b90920d92bb2b618af8acc9541208da94 /src/mainwindow.cpp
parentrekonq 0.3.19 (diff)
downloadrekonq-66836b1ca6d8d5dfcdf4d48dabc51b7709d6e456.tar.xz
Rewrite NewTabPage to use QWebElement for page generation
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
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;
}