aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/widgets
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-01-02 21:44:25 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2019-01-02 21:44:25 +0100
commit9e75098d885aafe79ff3cec5ed114938d60ccb2e (patch)
tree3a5f7d3361a17c8449f2c607c672816939d81539 /src/mainwindow/widgets
parentConnect Developer Tools and View Source actions (diff)
downloadsmolbote-9e75098d885aafe79ff3cec5ed114938d60ccb2e.tar.xz
Update license year
Diffstat (limited to 'src/mainwindow/widgets')
-rw-r--r--src/mainwindow/widgets/navigationbar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow/widgets/navigationbar.cpp b/src/mainwindow/widgets/navigationbar.cpp
index c56d342..e77ce6d 100644
--- a/src/mainwindow/widgets/navigationbar.cpp
+++ b/src/mainwindow/widgets/navigationbar.cpp
@@ -18,6 +18,7 @@
#include <QToolBar>
#include <QToolButton>
#include <QWebEngineHistory>
+#include "webprofile.h"
NavigationBar::NavigationBar(const Configuration *config, QWidget *parent)
: QToolBar(parent)
@@ -97,7 +98,7 @@ NavigationBar::NavigationBar(const Configuration *config, QWidget *parent)
homeAction = addAction(Util::icon(QStyle::SP_DirHomeIcon), tr("Home"));
config->setShortcut(homeAction, "navigation.shortcuts.home");
connect(homeAction, &QAction::triggered, this, [this]() {
- m_view->triggerViewAction(WebView::GoHome);
+ m_view->load(m_view->profile()->homepage());
});
}