summaryrefslogtreecommitdiff
path: root/src/rekonqpage
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-02-04 17:29:13 +0100
committermatgic78 <matgic78@gmail.com>2010-02-06 11:22:47 +0100
commit697d05328acd76de7a73145056ef22c8083f3ca4 (patch)
treeaa00ac7515d04ac0fa345df575309b8c23d0e2ad /src/rekonqpage
parentRemove m_newtabPage. That was not used anywhere ! (diff)
downloadrekonq-697d05328acd76de7a73145056ef22c8083f3ca4.tar.xz
Do not try to load homepage if url is not valid
Diffstat (limited to 'src/rekonqpage')
-rw-r--r--src/rekonqpage/newtabpage.cpp8
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);