diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-17 02:40:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-17 02:40:14 +0300 |
commit | 2e84ac20fcf6ec69b40e19c4c6c428db04b70d85 (patch) | |
tree | 5764a2a7235160cf7c6efd910c80e27044eb900f /src/gui | |
parent | 29118fed4a93dfc69370d20fb1459b86df57199e (diff) | |
download | mv-2e84ac20fcf6ec69b40e19c4c6c428db04b70d85.tar.gz mv-2e84ac20fcf6ec69b40e19c4c6c428db04b70d85.tar.bz2 mv-2e84ac20fcf6ec69b40e19c4c6c428db04b70d85.tar.xz mv-2e84ac20fcf6ec69b40e19c4c6c428db04b70d85.zip |
Add branding option for server list file name.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/serverdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index ce61f6572..55eda908e 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -484,13 +484,15 @@ void ServerDialog::downloadServerList() } mDownload = new Net::Download(this, listFile, &downloadUpdate); - mDownload->setFile(mDir + "/serverlist.xml"); + mDownload->setFile(mDir + "/" + branding.getStringValue( + "onlineServerFile")); mDownload->start(); } void ServerDialog::loadServers(bool addNew) { - XML::Document doc(mDir + "/serverlist.xml", false); + XML::Document doc(mDir + "/" + branding.getStringValue( + "onlineServerFile"), false); XmlNodePtr rootNode = doc.rootNode(); if (!rootNode || !xmlNameEqual(rootNode, "serverlist")) |