Sanity check before removing the ui element (#612)
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									5ce0e6416e
								
							
						
					
					
						commit
						c57afe821e
					
				@ -4436,10 +4436,11 @@ void Courtroom::set_sfx_dropdown()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void Courtroom::on_sfx_dropdown_changed(int p_index)
 | 
					void Courtroom::on_sfx_dropdown_changed(int p_index)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  Q_UNUSED(p_index);
 | 
					 | 
				
			||||||
  ui_ic_chat_message->setFocus();
 | 
					  ui_ic_chat_message->setFocus();
 | 
				
			||||||
  ui_sfx_remove->hide();
 | 
					  if (p_index == 0) {
 | 
				
			||||||
  custom_sfx = "";
 | 
					      ui_sfx_remove->hide();
 | 
				
			||||||
 | 
					      custom_sfx = "";
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Courtroom::on_sfx_dropdown_custom(QString p_sfx)
 | 
					void Courtroom::on_sfx_dropdown_custom(QString p_sfx)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user