diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 03:18:45 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 03:18:45 +0200 |
commit | 1cb0ff22c8d9f29bb3a0aee2b1b673efb1d556d6 (patch) | |
tree | c08b50a6c7512fc42a4dd913be44badd9ff03202 /src/mainview.cpp | |
parent | Some "stupid" toolbars fixes (diff) | |
parent | Modified rekonq behaviour: (diff) | |
download | rekonq-1cb0ff22c8d9f29bb3a0aee2b1b673efb1d556d6.tar.xz |
Merge branch 'HomePage'
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; } } |