summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 083bb810..84d79c40 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -963,10 +963,14 @@ void MainWindow::viewPageSource()
void MainWindow::homePage(Qt::MouseButtons mouseButtons, Qt::KeyboardModifiers keyboardModifiers)
{
+ KUrl homeUrl = ReKonfig::useNewTabPage()
+ ? KUrl( QL1S("about:home") )
+ : KUrl( ReKonfig::homePage() );
+
if (mouseButtons == Qt::MidButton || keyboardModifiers == Qt::ControlModifier)
- Application::instance()->loadUrl(KUrl(ReKonfig::homePage()), Rekonq::SettingOpenTab);
+ Application::instance()->loadUrl( homeUrl, Rekonq::SettingOpenTab);
else
- currentTab()->view()->load(QUrl(ReKonfig::homePage()));
+ currentTab()->view()->load( homeUrl );
}