diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-18 12:17:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-18 12:18:20 +0200 |
commit | 17e2c2eaefd4f1311777025ab04a110db986067f (patch) | |
tree | d455e1497f65e670186e90824112a03bf1dd9ded /src | |
parent | rekonq 0.4.70 (diff) | |
download | rekonq-17e2c2eaefd4f1311777025ab04a110db986067f.tar.xz |
Respect new tab conf launching a new window
Cedric's patch
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
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 |