Sanity check before removing the ui element (#612)

Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
This commit is contained in:
Salanto 2021-12-24 21:36:41 +01:00 committed by GitHub
parent 5ce0e6416e
commit c57afe821e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4436,10 +4436,11 @@ void Courtroom::set_sfx_dropdown()
void Courtroom::on_sfx_dropdown_changed(int p_index)
{
Q_UNUSED(p_index);
ui_ic_chat_message->setFocus();
ui_sfx_remove->hide();
custom_sfx = "";
if (p_index == 0) {
ui_sfx_remove->hide();
custom_sfx = "";
}
}
void Courtroom::on_sfx_dropdown_custom(QString p_sfx)