summaryrefslogtreecommitdiff
path: root/src/newtabpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newtabpage.cpp')
-rw-r--r--src/newtabpage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp
index f177cbf3..b3b9cf65 100644
--- a/src/newtabpage.cpp
+++ b/src/newtabpage.cpp
@@ -124,8 +124,9 @@ void NewTabPage::generate(const KUrl &url)
return;
}
- QWebPage *page = m_root.webFrame()->page();
+ WebPage *page = qobject_cast <WebPage *>(m_root.webFrame()->page());
page->mainFrame()->setHtml(m_html);
+ page->setIsOnRekonqPage(true);
m_root = page->mainFrame()->documentElement().findFirst("#content");