diff --git a/UI/AdhocServerScreen.cpp b/UI/AdhocServerScreen.cpp index 6bbf492d05..ead85be756 100644 --- a/UI/AdhocServerScreen.cpp +++ b/UI/AdhocServerScreen.cpp @@ -328,7 +328,7 @@ void CreateAdhocServerGameList(UI::ViewGroup *content, const std::vectorAdd(new CollapsibleSection(title)); gameSection->Header()->SetUnderline(false); for (const AdhocGroup &group : game.groups) { - std::string groupName = group.name; + std::string groupName(StripSpaces(group.name)); if (groupName.empty()) { groupName = "???"; } @@ -357,9 +357,15 @@ void CreateAdhocServerGameList(UI::ViewGroup *content, const std::vectorAdd(new TextView(groupString))->SetTextSize(TextSize::Small)->SetWordWrap();