diff options
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 76684c31..7c91b992 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -41,6 +41,7 @@ #include "urlbar.h" #include "webview.h" #include "sessionmanager.h" +#include "homepage.h" // KDE Includes #include <KUrl> @@ -295,9 +296,18 @@ void MainView::newTab() urlBar()->setUrl(KUrl("")); urlBar()->setFocus(); - if (ReKonfig::newTabsOpenHomePage()) + HomePage p; + + switch(ReKonfig::newTabsBehaviour()) { - w->load(QUrl(ReKonfig::homePage())); + case 0: + w->setHtml( p.rekonqHomePage() ); + break; + case 2: + w->load( QUrl(ReKonfig::homePage()) ); + break; + default: + break; } } |