From d00f7bef284ac2a5be70b3116a12a438844c77c7 Mon Sep 17 00:00:00 2001 From: Chris H Date: Sun, 14 Sep 2014 13:30:09 -0400 Subject: [PATCH] Move websearch from botton of context menu to underneath copy selection. It seems the 'Copy Selection' button got moved between when the patch was made and when it finally got applied. Got missed during the merge. --- src/qtui/chatscene.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index a0d9be3b..e03d7cad 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -832,7 +832,8 @@ void ChatScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) searchSelectionText = searchSelectionText.left(_webSearchSelectionTextMaxVisible).append(QString::fromUtf8("…")); searchSelectionText = tr("Search '%1'").arg(searchSelectionText); - menu.addAction(QIcon::fromTheme("edit-find"), searchSelectionText, this, SLOT(webSearchOnSelection())); + QAction *webSearchAction = new Action(QIcon::fromTheme("edit-find"), searchSelectionText, &menu, this, SLOT(webSearchOnSelection())); + menu.insertAction(sep, webSearchAction); } if (QtUi::mainWindow()->menuBar()->isHidden()) -- 2.20.1