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
+5 -8
View File
@@ -1430,15 +1430,12 @@ void wiComboBox::SetMaxVisibleItemCount(int value)
}
void wiComboBox::SetSelected(int index)
{
if (selected != index)
{
selected = index;
selected = index;
wiEventArgs args;
args.iValue = selected;
args.sValue = GetItemText(selected);
onSelect(args);
}
wiEventArgs args;
args.iValue = selected;
args.sValue = GetItemText(selected);
onSelect(args);
}
string wiComboBox::GetItemText(int index) const
{