summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp33
1 files changed, 13 insertions, 20 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 07f209b7..7c91b992 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -296,7 +296,19 @@ void MainView::newTab()
urlBar()->setUrl(KUrl(""));
urlBar()->setFocus();
- slotHome();
+ HomePage p;
+
+ switch(ReKonfig::newTabsBehaviour())
+ {
+ case 0:
+ w->setHtml( p.rekonqHomePage() );
+ break;
+ case 2:
+ w->load( QUrl(ReKonfig::homePage()) );
+ break;
+ default:
+ break;
+ }
}
@@ -570,22 +582,3 @@ void MainView::resizeEvent(QResizeEvent *event)
{
KTabWidget::resizeEvent(event);
}
-
-
-void MainView::slotHome()
-{
- WebView *w = currentWebView();
- HomePage p;
-
- switch(ReKonfig::newTabsBehaviour())
- {
- case 0:
- w->setHtml( p.rekonqHomePage(), QUrl());
- break;
- case 2:
- w->load( QUrl(ReKonfig::homePage()) );
- break;
- default:
- break;
- }
-}