Skip to content

Commit

Permalink
Fix link delegation
Browse files Browse the repository at this point in the history
Each tab will correctly open external links in an external browser.
  • Loading branch information
drognanar committed Aug 25, 2014
1 parent 6e58698 commit 4577132
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions zeal/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ void MainWindow::createTab()
ui->lineEdit->setText("");

newTab->page = new QWebPage(ui->webView);
newTab->page->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);

ui->treeView->setModel(NULL);
ui->treeView->setModel(&zealList);
Expand Down
1 change: 0 additions & 1 deletion zeal/widgets/searchablewebview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ SearchableWebView::SearchableWebView(QWidget *parent) :
lineEdit.setFocus();
});

webView.page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
connect(&webView, &QWebView::loadFinished, [&](bool ok) {
moveLineEdit();
});
Expand Down

0 comments on commit 4577132

Please sign in to comment.