summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-25 01:42:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-25 01:42:53 +0300
commit10f59701112130cf953a2af7ef4ae82d9d823fe6 (patch)
tree32f84fd57dde0e3ace791bae116163659d19170e /src/gui/serverdialog.cpp
parent4e95f451a793dbac5dbc31361cdc5049de48c3cc (diff)
downloadplus-10f59701112130cf953a2af7ef4ae82d9d823fe6.tar.gz
plus-10f59701112130cf953a2af7ef4ae82d9d823fe6.tar.bz2
plus-10f59701112130cf953a2af7ef4ae82d9d823fe6.tar.xz
plus-10f59701112130cf953a2af7ef4ae82d9d823fe6.zip
Add support for register from browser on servers with disabled registration.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 2f0610999..ec97b73c6 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -362,6 +362,7 @@ void ServerDialog::connectToSelectedServer()
mServerInfo->type = server.type;
mServerInfo->name = server.name;
mServerInfo->description = server.description;
+ mServerInfo->registerUrl = server.registerUrl;
mServerInfo->save = true;
if (chatLogger)
@@ -631,6 +632,11 @@ void ServerDialog::loadServers(const bool addNew)
server.description = reinterpret_cast<const char*>(
subNode->xmlChildrenNode->content);
}
+ else if (xmlNameEqual(subNode, "registerurl"))
+ {
+ server.registerUrl = reinterpret_cast<const char*>(
+ subNode->xmlChildrenNode->content);
+ }
}
server.version.first = gui->getFont()->getWidth(version);
@@ -648,6 +654,7 @@ void ServerDialog::loadServers(const bool addNew)
mServers[i].name = server.name;
mServers[i].version = server.version;
mServers[i].description = server.description;
+ mServers[i].registerUrl = server.registerUrl;
mServersListModel->setVersionString(i, version);
found = true;
break;