diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-12 23:02:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-12 23:02:11 +0300 |
commit | 5546a30788216ca9bab885cc97744ef8240dc32f (patch) | |
tree | 5de39ec4aee068d53e12807d31199481971bb3ef /src/gui/windows | |
parent | 6b0ade8b1ba9d9364b889d93c37486a52840031e (diff) | |
download | plus-5546a30788216ca9bab885cc97744ef8240dc32f.tar.gz plus-5546a30788216ca9bab885cc97744ef8240dc32f.tar.bz2 plus-5546a30788216ca9bab885cc97744ef8240dc32f.tar.xz plus-5546a30788216ca9bab885cc97744ef8240dc32f.zip |
Add comments for unknown licensed and non free servers.
For non free: (NON FREE)
for unknown: (UNKNOWN)
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index 9600028b3..89a4774ee 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -240,6 +240,7 @@ void ServerDialog::connectToSelectedServer() mServerInfo->defaultHostName = server.defaultHostName; mServerInfo->save = true; mServerInfo->persistentIp = server.persistentIp; + mServerInfo->freeType = server.freeType; mServerInfo->updateMirrors = server.updateMirrors; mServerInfo->packetVersion = server.packetVersion; mServerInfo->updateHosts = server.updateHosts; @@ -524,6 +525,9 @@ void ServerDialog::loadServers(const bool addNew) serverNode, "type", "unknown"); ServerInfo server; server.type = ServerInfo::parseType(type); + const std::string licenseType = XML::getProperty( + serverNode, "licenseType", "notset"); + server.freeType = ServerInfo::parseFreeType(licenseType); // Ignore unknown server types if (server.type == ServerType::UNKNOWN) @@ -630,6 +634,7 @@ void ServerDialog::loadServers(const bool addNew) // Use the name listed in the server list mServers[i].name = server.name; mServers[i].type = server.type; + mServers[i].freeType = server.freeType; mServers[i].version = server.version; mServers[i].description = server.description; mServers[i].registerUrl = server.registerUrl; |