summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-18 12:17:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-18 12:18:20 +0200
commit17e2c2eaefd4f1311777025ab04a110db986067f (patch)
treed455e1497f65e670186e90824112a03bf1dd9ded
parentrekonq 0.4.70 (diff)
downloadrekonq-17e2c2eaefd4f1311777025ab04a110db986067f.tar.xz
Respect new tab conf launching a new window
Cedric's patch
-rw-r--r--src/application.cpp17
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