diff options
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())); |