1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Middle click to respect new tabs after active tab

This commit is contained in:
Mladen Pejaković 2012-01-24 23:19:47 +01:00
parent 9106032d21
commit a725a44c6b

View File

@ -802,7 +802,7 @@ void WebView::mouseReleaseEvent(QMouseEvent* event)
if (frame) { if (frame) {
QUrl link = frame->hitTestContent(event->pos()).linkUrl(); QUrl link = frame->hitTestContent(event->pos()).linkUrl();
if (m_clickedUrl == link && isUrlValid(link)) { if (m_clickedUrl == link && isUrlValid(link)) {
openUrlInNewTab(link, Qz::NT_NotSelectedTab); openUrlInNewTab(link, WebViewSettings::newTabAfterActive ? Qz::NT_NotSelectedTab : Qz::NT_CleanTab);
event->accept(); event->accept();
return; return;
} }