projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f69cd
)
Add separator after "Copy Selection" context menu
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 24 Nov 2013 19:07:24 +0000
(20:07 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 24 Nov 2013 19:07:24 +0000
(20:07 +0100)
This went away with the commit fixing the menu for selections on
clickables, and is now being brought back.
src/qtui/chatscene.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatscene.cpp
b/src/qtui/chatscene.cpp
index
dc0abf1
..
105f070
100644
(file)
--- 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())