diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-29 12:15:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-29 12:15:17 +0200 |
commit | 40ced90916c742bd813be8bfaf7c17490a75a3e0 (patch) | |
tree | 750cbc86b076b1dc24a6d9c80d627f00ad54f892 /src/mainwindow.cpp | |
parent | Implementing a new about: protocol, 1st bunch (diff) | |
download | rekonq-40ced90916c742bd813be8bfaf7c17490a75a3e0.tar.xz |
Implemented about protocol to load home page(s)
and changed its layout
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 9 |
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()) ); } } |