diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-19 00:34:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-19 00:34:41 +0200 |
commit | 4338a19c4b1feb3136a4a61c22c495c036f5b5cf (patch) | |
tree | b510b058b736f8291ef4cc5cdc511350b063a36e /src/newtabpage.cpp | |
parent | Merge branch 'master' of gitorious.org:rekonq/mainline (diff) | |
download | rekonq-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.cpp | 3 |
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"); |