summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/pages/instance/ServersPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/pages/instance/ServersPage.cpp b/application/pages/instance/ServersPage.cpp
index 35f167aa..eb4757ac 100644
--- a/application/pages/instance/ServersPage.cpp
+++ b/application/pages/instance/ServersPage.cpp
@@ -64,8 +64,8 @@ struct Server
void serialize(nbt::tag_compound& server)
{
- server.insert("name", m_name.toUtf8().toStdString());
- server.insert("ip", m_address.toUtf8().toStdString());
+ server.insert("name", m_name.trimmed().toUtf8().toStdString());
+ server.insert("ip", m_address.trimmed().toUtf8().toStdString());
if(m_icon.size())
{
server.insert("icon", m_icon.toBase64().toStdString());