Skip to content
Permalink
Browse files

GH-2551 Trim server name and IP strings

  • Loading branch information...
robotbrain committed Mar 19, 2019
1 parent ae956d8 commit 597fe50d3728c77158a5c64ecffb37c836bf9e44
Showing with 2 additions and 2 deletions.
  1. +2 −2 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"])
{

0 comments on commit 597fe50

Please sign in to comment.
You can’t perform that action at this time.