From: Chris H Date: Sun, 14 Sep 2014 17:30:09 +0000 (-0400) Subject: Move websearch from botton of context menu to underneath copy selection. X-Git-Tag: 0.12-rc1~3 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d00f7bef284ac2a5be70b3116a12a438844c77c7;ds=sidebyside 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. --- 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())