mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed expanding messages
This commit is contained in:
parent
a9d57f3ebd
commit
5c8e736518
1 changed files with 9 additions and 9 deletions
|
@ -1030,18 +1030,18 @@ void ChannelView::addContextMenuItems(const messages::MessageLayoutElement *hove
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy actions
|
// Copy actions
|
||||||
menu->addAction("Copy selection",
|
|
||||||
[this] { QGuiApplication::clipboard()->setText(this->getSelectedText()); });
|
|
||||||
|
|
||||||
if (!this->selection.isEmpty()) {
|
if (!this->selection.isEmpty()) {
|
||||||
menu->addAction("Copy message", [layout] {
|
menu->addAction("Copy selection",
|
||||||
QString copyString;
|
[this] { QGuiApplication::clipboard()->setText(this->getSelectedText()); });
|
||||||
layout->addSelectionText(copyString);
|
|
||||||
|
|
||||||
QGuiApplication::clipboard()->setText(copyString);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu->addAction("Copy message", [layout] {
|
||||||
|
QString copyString;
|
||||||
|
layout->addSelectionText(copyString);
|
||||||
|
|
||||||
|
QGuiApplication::clipboard()->setText(copyString);
|
||||||
|
});
|
||||||
|
|
||||||
// menu->addAction("Quote message", [layout] {
|
// menu->addAction("Quote message", [layout] {
|
||||||
// QString copyString;
|
// QString copyString;
|
||||||
// layout->addSelectionText(copyString);
|
// layout->addSelectionText(copyString);
|
||||||
|
|
Loading…
Reference in a new issue