fix(modulo): fix bad searchbar handling of utf8 chars

This commit is contained in:
Federico Terzi 2021-08-22 21:53:21 +02:00
parent babd1f715e
commit 6c68a9d51d

View File

@ -398,13 +398,13 @@ void SearchFrame::SetItems(SearchItem *items, int itemSize)
for (int i = 0; i < itemSize; i++)
{
wxString item = items[i].label;
wxString item = wxString::FromUTF8(items[i].label);
wxItems.Add(item);
wxString id = items[i].id;
wxString id = wxString::FromUTF8(items[i].id);
wxIds.Add(id);
wxString trigger = items[i].trigger;
wxString trigger = wxString::FromUTF8(items[i].trigger);
wxTriggers.Add(trigger);
}