GH-2551 Trim server name and IP strings
This commit is contained in:
parent
ae956d8fd6
commit
597fe50d37
@ -37,10 +37,10 @@ struct Server
|
|||||||
Server(nbt::tag_compound& server)
|
Server(nbt::tag_compound& server)
|
||||||
{
|
{
|
||||||
std::string addressStr(server["ip"]);
|
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"]);
|
std::string nameStr(server["name"]);
|
||||||
m_name = QString::fromUtf8(nameStr.c_str());
|
m_name = QString::fromUtf8(nameStr.c_str()).trimmed();
|
||||||
|
|
||||||
if(server["icon"])
|
if(server["icon"])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user