From 9e5598cbedde4eda5fc3e4bf3efda08da939056c Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 14 Feb 2017 14:34:44 +0100 Subject: fixed a bug where yellow text would not work --- courtroom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'courtroom.cpp') diff --git a/courtroom.cpp b/courtroom.cpp index b60a6e6e..9a67bb94 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -910,7 +910,7 @@ void Courtroom::on_chat_return_pressed() if (text_color < 0) f_text_color = "0"; - else if (text_color > 4 && !ao_app->ao2_features) + else if (text_color > 4 && !ao_app->yellow_text_enabled) f_text_color = "0"; else f_text_color = QString::number(text_color); @@ -1341,6 +1341,7 @@ void Courtroom::set_text_color() case YELLOW: ui_vp_message->setStyleSheet("background-color: rgba(0, 0, 0, 0);" "color: yellow"); + break; default: qDebug() << "W: undefined text color: " << m_chatmessage[TEXT_COLOR]; case WHITE: -- cgit