From 171650e888d296959bd4eda2e61562447497a00a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 29 Nov 2012 18:47:49 +0100 Subject: Ensure settings respect Honor settings when opening new tab (fix for the rekonq2 port) --- src/tabwindow/tabwindow.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/tabwindow/tabwindow.cpp') diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index 60a9a0eb..a37cc249 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -28,6 +28,9 @@ #include "tabwindow.h" #include "tabwindow.moc" +// Auto Includes +#include "rekonq.h" + // Local Includes #include "application.h" #include "webpage.h" @@ -254,7 +257,20 @@ void TabWindow::newTab() addTab(tab, i18n("new tab")); setCurrentWidget(tab); - tab->load(KUrl("about:home")); + switch (ReKonfig::newTabsBehaviour()) + { + case 0: // new tab page + tab->load(KUrl("about:home")); + break; + case 2: // homepage + tab->load(KUrl(ReKonfig::homePage())); + break; + case 1: // blank page + default: + tab->load(KUrl("about:blank")); + break; + } + } -- cgit v1.2.1