1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

copy: handle pending messages

This commit is contained in:
krepa098 2015-02-08 12:20:27 +01:00
parent e86b03b4f7
commit 535757670b

View File

@ -489,7 +489,9 @@ QString ChatLog::getSelectedText() const
if(lastSender != lines[i]->content[0]->getText() && !lines[i]->content[0]->getText().isEmpty())
{
//author changed
out += QString(out.isEmpty() ? "[%2] %1:\n" : "\n[%2] %1:\n").arg(lines[i]->content[0]->getText(), lines[i]->content[2]->getText());
QString timestamp = lines[i]->content[2]->getText().isEmpty() ? tr("pending") : lines[i]->content[2]->getText();
QString msg = lines[i]->content[0]->getText();
out += QString(out.isEmpty() ? "[%2] %1:\n" : "\n[%2] %1:\n").arg(msg, timestamp);
lastSender = lines[i]->content[0]->getText();
}