fix: gui combobox behaviour

This commit is contained in:
Turanszki Janos
2020-10-08 21:41:06 +02:00
parent d26fb18618
commit 967fc3fe66
3 changed files with 10 additions and 10 deletions
+4 -1
View File
@@ -240,7 +240,10 @@ void SoundWindow::SetEntity(Entity entity)
playstopButton->SetText("Play");
}
submixComboBox->SetEnabled(true);
submixComboBox->SetSelected((int)sound->soundinstance.type);
if (submixComboBox->GetSelected() != (int)sound->soundinstance.type)
{
submixComboBox->SetSelected((int)sound->soundinstance.type);
}
}
else
{