Browse Source

Single line copy/pasted text

pull/1217/head
Dubslow 11 years ago
parent
commit
68c3d3ed07
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
  1. 5
      src/chatlog/chatlog.cpp

5
src/chatlog/chatlog.cpp

@ -502,10 +502,7 @@ QString ChatLog::getSelectedText() const @@ -502,10 +502,7 @@ QString ChatLog::getSelectedText() const
QString author = lines[i]->content[0]->getText();
QString msg = lines[i]->content[1]->getText();
out += QString(out.isEmpty() ? "[%2] %1:\n%3" : "\n[%2] %1:\n%3").arg(author, timestamp, msg);
if(i != selLastRow)
out += "\n";
out += QString(out.isEmpty() ? "[%2] %1: %3" : "\n[%2] %1: %3").arg(author, timestamp, msg);
}
return out;

Loading…
Cancel
Save