forked from qt-creator/qt-creator
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:
@@ -260,7 +260,7 @@ void SearchWidget::contextMenuEvent(QContextMenuEvent *contextMenuEvent)
|
|||||||
|
|
||||||
QAction *usedAction = menu.exec(mapToGlobal(contextMenuEvent->pos()));
|
QAction *usedAction = menu.exec(mapToGlobal(contextMenuEvent->pos()));
|
||||||
if (usedAction == openLink)
|
if (usedAction == openLink)
|
||||||
browser->selectAll();
|
emit linkActivated(link);
|
||||||
else if (usedAction == openLinkInNewTab)
|
else if (usedAction == openLinkInNewTab)
|
||||||
OpenPagesManager::instance().createPageFromSearch(link);
|
OpenPagesManager::instance().createPageFromSearch(link);
|
||||||
else if (usedAction == copyAnchorAction)
|
else if (usedAction == copyAnchorAction)
|
||||||
|
|||||||
Reference in New Issue
Block a user