When the option to "Load Clipboard URL" is selected for the middle-click action, Rekonq should use PRIMARY, not CLIPBOARD. That's because middle-click pasting anywhere would paste the contents of PRIMARY, so one would expect it to react like a paste.
Steps to Reproduce:
1. Make sure that CLIPBOARD and PRIMARY are not being kept in sync by an external agent (e.g., klipper)
2. Select some text and Ctrl+C
3. Select a URL with the mouse only and do not Ctrl+C it
4. Middle-click somewhere in a webpage in rekonq
The text from step 2 is loaded or searched for.
The URL from step 3 is loaded.
Proposed fix: https://git.reviewboard.kde.org/r/109107/
Git commit 8c7adfbad1c8568a55cb135f560ea06463cd3491 by Andrea Diamantini, on behalf of Thiago Macieira.
Committed on 24/02/2013 at 11:47.
Pushed by adjam into branch 'master'.
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.
Related: bug 314551
M +1 -1 src/webtab/webview.cpp