summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-18 02:10:51 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-18 02:10:51 +0100
commit4dcd02b5317896be0adbe479a4594dac4f048286 (patch)
tree2fd44aeae0e9a60ec4df3b50ef4f5dc090db983b /src/rekonqpage/newtabpage.cpp
parentPlease, don't crash on CTRL+W signals :) (diff)
downloadrekonq-4dcd02b5317896be0adbe479a4594dac4f048286.tar.xz
Working around about: protocol..
- honor rekonq settings on about:home page - loads about:blank :) pages
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r--src/rekonqpage/newtabpage.cpp12
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);
}