Help: Fix "Open Link" context menu item in search pane.

It selected all text in the search result widget, instead of opening the
link.

Change-Id: I264a8cc7ab29e71519d6d10b75a21fcd940d459d
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2014-10-10 11:46:02 +02:00
parent 9e74d06402
commit b3f3c96bca

View File

@@ -260,7 +260,7 @@ void SearchWidget::contextMenuEvent(QContextMenuEvent *contextMenuEvent)
QAction *usedAction = menu.exec(mapToGlobal(contextMenuEvent->pos()));
if (usedAction == openLink)
browser->selectAll();
emit linkActivated(link);
else if (usedAction == openLinkInNewTab)
OpenPagesManager::instance().createPageFromSearch(link);
else if (usedAction == copyAnchorAction)