summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 722189f5..e0aed6e7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -45,7 +45,6 @@
#include "findbar.h"
#include "sidepanel.h"
#include "urlbar.h"
-#include "homepage.h"
// Ui Includes
#include "ui_cleardata.h"
@@ -740,17 +739,13 @@ void MainWindow::slotViewPageSource()
void MainWindow::slotHome()
{
- WebView *w = currentTab();
-
if(ReKonfig::newTabHomePage())
{
- HomePage p(w);
- w->setHtml( p.rekonqHomePage(), QUrl());
- m_view->urlBar()->setFocus();
+ Application::instance()->homePage();
}
else
{
- w->load( QUrl(ReKonfig::homePage()) );
+ currentTab()->load( QUrl(ReKonfig::homePage()) );
}
}