aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-09-04 16:20:09 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-09-04 16:20:09 +0200
commit02980eb506e2b624d539a2dfb29bbe1834dd07a0 (patch)
tree3efd42ae40652c7085bc45843c3f890c07c1aea3 /src/mainwindow.cpp
parentImplemented Print to PDF action (diff)
downloadsmolbote-02980eb506e2b624d539a2dfb29bbe1834dd07a0.tar.xz
Split off Bookmarks into static lib
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
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()));