From 17e2c2eaefd4f1311777025ab04a110db986067f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 18 May 2010 12:17:17 +0200 Subject: Respect new tab conf launching a new window Cedric's patch --- src/application.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/application.cpp b/src/application.cpp index 0e31002c..412999d8 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -140,7 +140,22 @@ int Application::newInstance() } else // rekonq has just been started. Just open a new window { - loadUrl(KUrl("about:home") , Rekonq::NewWindow); + switch (ReKonfig::newTabsBehaviour()) + { + case 0: // new tab page + loadUrl(KUrl("about:home") , Rekonq::NewWindow); + break; + case 1: // blank page + loadUrl(KUrl("about:blank") , Rekonq::NewWindow); + break; + case 2: // homepage + loadUrl(KUrl(ReKonfig::homePage()) , Rekonq::NewWindow); + break; + default: + loadUrl(KUrl("about:blank") , Rekonq::NewWindow); + break; + } + } } else -- cgit v1.2.1