summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 3da044ec..78eb7b2d 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -376,7 +376,7 @@ void WebView::mousePressEvent(QMouseEvent *event)
}
QWebHitTestResult result = page()->mainFrame()->hitTestContent(event->pos());
- m_canEnableAutoScroll = ReKonfig::autoScroll() && !result.isContentEditable() && result.linkUrl().isEmpty();
+ m_canEnableAutoScroll = ReKonfig::middleClickAction() == 0 && !result.isContentEditable() && result.linkUrl().isEmpty();
switch (event->button())
{
@@ -403,7 +403,7 @@ void WebView::mousePressEvent(QMouseEvent *event)
}
}
- if (!ReKonfig::autoScroll())
+ if (ReKonfig::middleClickAction() == 1 && result.linkUrl().isEmpty())
{
const QString clipboardContent = rApp->clipboard()->text();