diff options
| author | Crystalwarrior <varsash@gmail.com> | 2019-12-28 05:47:33 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-12-28 05:47:33 +0300 |
| commit | 59e8a72a50433e54817a5684be229d3a43bd508e (patch) | |
| tree | b6dc2e921962e4bfea60ccb5368106f38ce3d4df | |
| parent | 7518ed8a00f57f2b850a00004d1699b4b939f79a (diff) | |
Allow colors in server chatlogs
| -rw-r--r-- | src/courtroom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 6faebe99..b2482ada 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -2296,7 +2296,7 @@ void Courtroom::append_ic_text(QString p_text, QString p_name, bool is_songchang const int old_scrollbar_value = ui_ic_chatlog->verticalScrollBar()->value(); if (!is_songchange) - p_text = filter_ic_text(p_text, false); + p_text = filter_ic_text(p_text, true, -1, m_chatmessage[TEXT_COLOR].toInt()); if (log_goes_downwards) { @@ -2322,7 +2322,7 @@ void Courtroom::append_ic_text(QString p_text, QString p_name, bool is_songchang else { ui_ic_chatlog->textCursor().insertText(": ", normal); - ui_ic_chatlog->textCursor().insertText(p_text, normal); + ui_ic_chatlog->textCursor().insertHtml(p_text); } // If we got too many blocks in the current log, delete some from the top. |
