mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 03:16:58 +03:00
GH-2551 Trim server name and IP strings
This commit is contained in:
parent
ae956d8fd6
commit
597fe50d37
1 changed files with 2 additions and 2 deletions
|
|
@ -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"])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue