From: Manuel Nickschas Date: Sun, 24 Nov 2013 19:07:24 +0000 (+0100) Subject: Add separator after "Copy Selection" context menu X-Git-Tag: 0.10-beta1~85 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=c4fb7cc8acc744e7a8e78d23ed40f164e8cb2c62 Add separator after "Copy Selection" context menu This went away with the commit fixing the menu for selections on clickables, and is now being brought back. --- diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index dc0abf10..105f0709 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -809,9 +809,10 @@ void ChatScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) // If we have text selected, insert the Copy Selection as first item if (isPosOverSelection(pos)) { + QAction *sep = menu.insertSeparator(menu.actions().first()); QAction *act = new Action(SmallIcon("edit-copy"), tr("Copy Selection"), &menu, this, SLOT(selectionToClipboard()), QKeySequence::Copy); - menu.insertAction(menu.actions().at(0), act); + menu.insertAction(sep, act); } if (QtUi::mainWindow()->menuBar()->isHidden())