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:
parent
e86b03b4f7
commit
535757670b
|
@ -489,7 +489,9 @@ QString ChatLog::getSelectedText() const
|
||||||
if(lastSender != lines[i]->content[0]->getText() && !lines[i]->content[0]->getText().isEmpty())
|
if(lastSender != lines[i]->content[0]->getText() && !lines[i]->content[0]->getText().isEmpty())
|
||||||
{
|
{
|
||||||
//author changed
|
//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();
|
lastSender = lines[i]->content[0]->getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user