summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-11-29 18:47:49 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:06 +0100
commit171650e888d296959bd4eda2e61562447497a00a (patch)
tree7701c66645a651456dbc45f5dcb745f1b1851d34 /src/tabwindow/tabwindow.cpp
parentFix RekonqWindow behaviour while opening new windows (diff)
downloadrekonq-171650e888d296959bd4eda2e61562447497a00a.tar.xz
Ensure settings respect
Honor settings when opening new tab (fix for the rekonq2 port)
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r--src/tabwindow/tabwindow.cpp18
1 files changed, 17 insertions, 1 deletions
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;
+ }
+
}