Fixed extra linebreaks after songchange in IC.

This commit is contained in:
Cerapter 2018-08-16 00:44:32 +02:00
parent 956c3b50d6
commit d6b6a03802

View File

@ -1507,7 +1507,7 @@ void Courtroom::append_ic_songchange(QString p_songname, QString p_name)
} }
ui_ic_chatlog->textCursor().insertText(" has played a song: ", normal); ui_ic_chatlog->textCursor().insertText(" has played a song: ", normal);
ui_ic_chatlog->textCursor().insertText(p_songname + "." + '\n', italics); ui_ic_chatlog->textCursor().insertText(p_songname + ".", italics);
// If we got too many blocks in the current log, delete some from the top. // If we got too many blocks in the current log, delete some from the top.
while (ui_ic_chatlog->document()->blockCount() > log_maximum_blocks) while (ui_ic_chatlog->document()->blockCount() > log_maximum_blocks)