Fixed selection of soundfont with spaces in its name

This commit is contained in:
alexey.lysiuk 2018-03-06 13:05:38 +02:00
parent 774a7773a4
commit 4b7e57b007

View file

@ -1404,7 +1404,7 @@ static void InitMusicMenus()
{
FString display = entry.mName;
display.ReplaceChars("_", ' ');
auto it = CreateOptionMenuItemCommand(display, FStringf("%s %s", std::get<2>(p), entry.mName.GetChars()), true);
auto it = CreateOptionMenuItemCommand(display, FStringf("%s \"%s\"", std::get<2>(p), entry.mName.GetChars()), true);
static_cast<DOptionMenuDescriptor*>(*menu)->mItems.Push(it);
}
}