Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(UI): copy friend's non-truncated status message instead of truncated
Browse files Browse the repository at this point in the history
qTox still internally replaces newlines with spaces which breaks
formatting, but now at least whole status message gets copied.
  • Loading branch information
zetok committed Dec 9, 2016
1 parent 231e1d7 commit 9d1275b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widget/form/chatform.cpp
Expand Up @@ -876,7 +876,8 @@ void ChatForm::insertChatMessage(ChatMessage::Ptr msg)

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();

if (clipboard)
Expand Down

0 comments on commit 9d1275b

Please sign in to comment.