forked from blue/squawk
selection message body now actually working
This commit is contained in:
parent
0340db7f2f
commit
3c48577eee
7 changed files with 138 additions and 40 deletions
|
@ -499,6 +499,16 @@ void Conversation::onFeedContext(const QPoint& pos)
|
|||
});
|
||||
}
|
||||
|
||||
QString selected = feed->getSelectedText();
|
||||
if (selected.size() > 0) {
|
||||
showMenu = true;
|
||||
QAction* copy = contextMenu->addAction(Shared::icon("edit-copy"), tr("Copy selected"));
|
||||
connect(copy, &QAction::triggered, [selected] () {
|
||||
QClipboard* cb = QApplication::clipboard();
|
||||
cb->setText(selected);
|
||||
});
|
||||
}
|
||||
|
||||
QString body = item->getBody();
|
||||
if (body.size() > 0) {
|
||||
showMenu = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue