1
0
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:
Zetok Zalbavar 2016-12-09 03:19:47 +00:00
parent 231e1d746a
commit 9d1275b396
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -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)