diff --git a/application/pages/instance/ServersPage.cpp b/application/pages/instance/ServersPage.cpp index 35f167aad..8db4d1094 100644 --- a/application/pages/instance/ServersPage.cpp +++ b/application/pages/instance/ServersPage.cpp @@ -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"]) {