diff options
author | Elise <robotbrainify@gmail.com> | 2019-03-19 13:28:11 -0400 |
---|---|---|
committer | Elise <robotbrainify@gmail.com> | 2019-03-19 13:28:11 -0400 |
commit | 597fe50d3728c77158a5c64ecffb37c836bf9e44 (patch) | |
tree | a10c391966aa983fc6932f6f9559e69e03ecb03a /application/pages | |
parent | ae956d8fd6007304cbf6174ead70e61a61d502b0 (diff) | |
download | MultiMC-597fe50d3728c77158a5c64ecffb37c836bf9e44.tar MultiMC-597fe50d3728c77158a5c64ecffb37c836bf9e44.tar.gz MultiMC-597fe50d3728c77158a5c64ecffb37c836bf9e44.tar.lz MultiMC-597fe50d3728c77158a5c64ecffb37c836bf9e44.tar.xz MultiMC-597fe50d3728c77158a5c64ecffb37c836bf9e44.zip |
GH-2551 Trim server name and IP strings
Diffstat (limited to 'application/pages')
-rw-r--r-- | application/pages/instance/ServersPage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/pages/instance/ServersPage.cpp b/application/pages/instance/ServersPage.cpp index 35f167aa..8db4d109 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"]) { |