Move websearch from botton of context menu to underneath copy selection.
authorChris H <zrenfire@gmail.com>
Sun, 14 Sep 2014 17:30:09 +0000 (13:30 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 11 Mar 2015 19:23:41 +0000 (20:23 +0100)
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

index a0d9be3..e03d7ca 100644 (file)
@@ -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())