diff options
author | Furkan Üzümcü <furkanuzumcu@gmail.com> | 2011-09-20 22:08:34 +0300 |
---|---|---|
committer | Furkan Üzümcü <furkanuzumcu@gmail.com> | 2011-09-20 22:08:34 +0300 |
commit | 1745660088759d2e693f99373144a173b27d2773 (patch) | |
tree | 9ec02e64acff4f96b59c205e5b94c39cf9f7b1a9 /src/webview.cpp | |
parent | Fix tab size and addTabButton position when a KMessageWidget appears (diff) | |
download | rekonq-1745660088759d2e693f99373144a173b27d2773.tar.xz |
Added a combobox with middleclick options "autoscroll", "pasteAndGo" and
"do
nothing"
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 4 |
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(); |