diff options
author | Thiago Macieira <thiago@kde.org> | 2013-02-24 11:47:44 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-02-24 11:52:02 +0100 |
commit | 8c7adfbad1c8568a55cb135f560ea06463cd3491 (patch) | |
tree | 62c998568407f1093c4848b08762ea4014571cd9 /src/webtab | |
parent | Trim whitespace from urls (diff) | |
download | rekonq-8c7adfbad1c8568a55cb135f560ea06463cd3491.tar.xz |
Make rekonq use the selection (PRIMARY) for MMB clicks
The Selection is what usually gets pasted when one does an MMB click,
so it makes sense to use that as search term or URL to load.
(Thanks, Thiago!)
BUG: 315657
BUG: 314551
REVIEW: 109107
REVIEWED-BY: adjam
Diffstat (limited to 'src/webtab')
-rw-r--r-- | src/webtab/webview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp index 4b9d3b9e..dca2ee0e 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -609,7 +609,7 @@ void WebView::mousePressEvent(QMouseEvent *event) case 1: // Load Clipboard URL if (weCanDoMiddleClickActions) { - const QString clipboardContent = QApplication::clipboard()->text(); + const QString clipboardContent = QApplication::clipboard()->text(QClipboard::Selection); if (clipboardContent.isEmpty()) break; |