From dc1b5931ea31fca63eb5986b2a26f2a6e54aa7d6 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 5 Jun 2014 15:43:17 +0200 Subject: [PATCH] [WebView] Don't clear selection when right clicking on selected link This removes a workaround for a very old QtWebKit (<= 2.0) that actually caused unwanted behavior with newer QtWebKit versions. Closes #1377 [ci-skip] --- src/lib/webkit/webview.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/lib/webkit/webview.cpp b/src/lib/webkit/webview.cpp index 07282cf79..bce885b35 100644 --- a/src/lib/webkit/webview.cpp +++ b/src/lib/webkit/webview.cpp @@ -1072,11 +1072,6 @@ void WebView::createPageContextMenu(QMenu* menu, const QPoint &pos) void WebView::createLinkContextMenu(QMenu* menu, const QWebHitTestResult &hitTest) { - // Workaround for QtWebKit <= 2.0 when selecting link text on right click - if (page()->selectedText() == hitTest.linkText()) { - findText(QString()); - } - menu->addSeparator(); Action* act = new Action(IconProvider::newTabIcon(), tr("Open link in new &tab")); act->setData(hitTest.linkUrl());