diff options
author | matgic78 <matgic78@gmail.com> | 2010-02-04 17:29:13 +0100 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2010-02-06 11:22:47 +0100 |
commit | 697d05328acd76de7a73145056ef22c8083f3ca4 (patch) | |
tree | aa00ac7515d04ac0fa345df575309b8c23d0e2ad | |
parent | Remove m_newtabPage. That was not used anywhere ! (diff) | |
download | rekonq-697d05328acd76de7a73145056ef22c8083f3ca4.tar.xz |
Do not try to load homepage if url is not valid
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp index 8a1ca89f..49f4e837 100644 --- a/src/rekonqpage/newtabpage.cpp +++ b/src/rekonqpage/newtabpage.cpp @@ -93,6 +93,14 @@ void NewTabPage::generate(KUrl url) } } + if( url != KUrl("about:home") + && url != KUrl("about:favorites") + && url != KUrl("about:closedTabs") + && url != KUrl("about:history") + && url != KUrl("about:bookmarks") + ) + return; + QWebPage *page = m_root.webFrame()->page(); page->mainFrame()->setHtml(m_html); |