diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-18 02:10:51 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-18 02:10:51 +0100 |
commit | 4dcd02b5317896be0adbe479a4594dac4f048286 (patch) | |
tree | 2fd44aeae0e9a60ec4df3b50ef4f5dc090db983b /src/rekonqpage | |
parent | Please, don't crash on CTRL+W signals :) (diff) | |
download | rekonq-4dcd02b5317896be0adbe479a4594dac4f048286.tar.xz |
Working around about: protocol..
- honor rekonq settings on about:home page
- loads about:blank :) pages
Diffstat (limited to 'src/rekonqpage')
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
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); } |