mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed system messages not splitting words properly
This commit is contained in:
parent
9b90b1b590
commit
72ed52c35c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue