diff options
Diffstat (limited to 'src/plugins/help/searchwidget.cpp')
-rw-r--r-- | src/plugins/help/searchwidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/help/searchwidget.cpp b/src/plugins/help/searchwidget.cpp index 2bc80ba80a..e8d1c2667c 100644 --- a/src/plugins/help/searchwidget.cpp +++ b/src/plugins/help/searchwidget.cpp @@ -259,11 +259,10 @@ void SearchWidget::contextMenuEvent(QContextMenuEvent *contextMenuEvent) } QAction *usedAction = menu.exec(mapToGlobal(contextMenuEvent->pos())); - if (usedAction == openLink) { + if (usedAction == openLink) browser->selectAll(); - } else if (usedAction == openLinkInNewTab) { + else if (usedAction == openLinkInNewTab) OpenPagesManager::instance().createPageFromSearch(link); - } else if (usedAction == copyAnchorAction) { + else if (usedAction == copyAnchorAction) QApplication::clipboard()->setText(link.toString()); - } } |