summaryrefslogtreecommitdiff
path: root/src/newtabpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-19 00:34:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-19 00:34:41 +0200
commit4338a19c4b1feb3136a4a61c22c495c036f5b5cf (patch)
treeb510b058b736f8291ef4cc5cdc511350b063a36e /src/newtabpage.cpp
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-4338a19c4b1feb3136a4a61c22c495c036f5b5cf.tar.xz
This patch is based on Cedric's idea about fixing history with error pages
and use it to fix back/forward buttons also on kparts and so on :)
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");