From 4dcd02b5317896be0adbe479a4594dac4f048286 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 18 Feb 2010 02:10:51 +0100 Subject: Working around about: protocol.. - honor rekonq settings on about:home page - loads about:blank :) pages --- src/rekonqpage/newtabpage.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/rekonqpage') diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp index ca8ed35e..f7ebcdbf 100644 --- a/src/rekonqpage/newtabpage.cpp +++ b/src/rekonqpage/newtabpage.cpp @@ -94,15 +94,6 @@ 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); @@ -111,7 +102,7 @@ void NewTabPage::generate(KUrl url) browsingMenu(url); QString title; - if(url == KUrl("about:home") || url == KUrl("about:favorites")) + if(url == KUrl("about:favorites")) { favoritesPage(); title = i18n("Favorites"); @@ -134,7 +125,6 @@ void NewTabPage::generate(KUrl url) } m_url = url; - m_root.document().findFirst("title").setPlainText(title); } -- cgit v1.2.1