From 1745660088759d2e693f99373144a173b27d2773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20=C3=9Cz=C3=BCmc=C3=BC?= Date: Tue, 20 Sep 2011 22:08:34 +0300 Subject: Added a combobox with middleclick options "autoscroll", "pasteAndGo" and "do nothing" --- src/webview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webview.cpp') 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(); -- cgit v1.2.1