fixed system messages not splitting words properly

This commit is contained in:
fourtf 2017-12-24 00:24:35 +01:00
parent 9b90b1b590
commit 72ed52c35c

View file

@ -103,10 +103,13 @@ Message *Message::createSystemMessage(const QString &text)
AddCurrentTimestamp(message); AddCurrentTimestamp(message);
Word word(text, Word::Flags::Default, MessageColor(MessageColor::Type::System), QStringList words = text.split(' ');
FontManager::Medium, text, QString());
message->getWords().push_back(word); for (QString word : words) {
message->getWords().push_back(Word(word, Word::Flags::Default,
MessageColor(MessageColor::Type::System),
FontManager::Medium, word, QString()));
}
return message; return message;
} }