diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-04 16:20:09 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-04 16:20:09 +0200 |
commit | 02980eb506e2b624d539a2dfb29bbe1834dd07a0 (patch) | |
tree | 3efd42ae40652c7085bc45843c3f890c07c1aea3 /src/mainwindow.cpp | |
parent | Implemented Print to PDF action (diff) | |
download | smolbote-02980eb506e2b624d539a2dfb29bbe1834dd07a0.tar.xz |
Split off Bookmarks into static lib
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dd16172..be19021 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -108,6 +108,12 @@ MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) : }); connect(tabBar, SIGNAL(currentTabChanged(WebView*)), this, SLOT(handleTabChanged(WebView*))); + connect(qApp->bookmarks(), &BookmarksWidget::openUrl, [this](const QUrl &url) { + if(this->isActiveWindow()) { + this->newTab(url); + } + }); + // Load profile tabBar->setProfile(qApp->profile(sSettings->value("browser.profile.default").toString())); |