Skip to content

Commit

Permalink
Sanity check before removing the ui element (#612)
Browse files Browse the repository at this point in the history
Co-authored-by: oldmud0 <[email protected]>
  • Loading branch information
Salanto and oldmud0 authored Dec 24, 2021
1 parent 5ce0e64 commit c57afe8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c57afe8

Please sign in to comment.