GH-2551 Trim server name and IP strings

This commit is contained in:
Elise 2019-03-19 13:28:11 -04:00
parent ae956d8fd6
commit 597fe50d37

View File

@ -37,10 +37,10 @@ struct Server
Server(nbt::tag_compound& server)
{
std::string addressStr(server["ip"]);
m_address = QString::fromUtf8(addressStr.c_str());
m_address = QString::fromUtf8(addressStr.c_str()).trimmed();
std::string nameStr(server["name"]);
m_name = QString::fromUtf8(nameStr.c_str());
m_name = QString::fromUtf8(nameStr.c_str()).trimmed();
if(server["icon"])
{