summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2009-12-12 19:51:59 +0100
committerPanagiotis Papadopoulos <pano_90@gmx.net>2009-12-12 19:51:59 +0100
commit972d745970c0acda62610b99bb3c52bf44ec289a (patch)
tree624fb287d5d788c4d29da9a9479a60f7e6c17f74 /src/mainwindow.cpp
parentString fixes for the walletwidget (diff)
parentMerge commit 'refs/merge-requests/64' of git://gitorious.org/rekonq/mainline (diff)
downloadrekonq-972d745970c0acda62610b99bb3c52bf44ec289a.tar.xz
Merge branch 'master' of git://gitorious.org/rekonq/mainline into strings
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;
}