mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(UI): copy friend's non-truncated status message instead of truncated
qTox still internally replaces newlines with spaces which breaks formatting, but now at least whole status message gets copied.
This commit is contained in:
parent
231e1d746a
commit
9d1275b396
@ -876,7 +876,8 @@ void ChatForm::insertChatMessage(ChatMessage::Ptr msg)
|
|||||||
|
|
||||||
void ChatForm::onCopyStatusMessage()
|
void ChatForm::onCopyStatusMessage()
|
||||||
{
|
{
|
||||||
QString text = statusMessageLabel->text();
|
// make sure to copy not truncated text directly from the friend
|
||||||
|
QString text = f->getStatusMessage();
|
||||||
QClipboard* clipboard = QApplication::clipboard();
|
QClipboard* clipboard = QApplication::clipboard();
|
||||||
|
|
||||||
if (clipboard)
|
if (clipboard)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user