summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-29 01:24:56 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-29 01:24:56 +0300
commitace44570149091382a555a7832f5a13eea4a05e4 (patch)
tree777318031580fff85b739f007f0647fba8063a28 /src/gui/whoisonline.cpp
parentb917a2cea65b1d9fc559fc0cf5a32797d88094b4 (diff)
downloadmv-ace44570149091382a555a7832f5a13eea4a05e4.tar.gz
mv-ace44570149091382a555a7832f5a13eea4a05e4.tar.bz2
mv-ace44570149091382a555a7832f5a13eea4a05e4.tar.xz
mv-ace44570149091382a555a7832f5a13eea4a05e4.zip
Use appname in user agents string while downloading files.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index e38f6ad73..ea86318a3 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -498,8 +498,8 @@ int WhoIsOnline::downloadThread(void *ptr)
curl_easy_setopt(curl, CURLOPT_WRITEDATA, ptr);
curl_easy_setopt(curl, CURLOPT_USERAGENT,
- strprintf(PACKAGE_EXTENDED_VERSION, branding
- .getValue("appShort", "mana").c_str()).c_str());
+ strprintf(PACKAGE_EXTENDED_VERSION,
+ branding.getStringValue("appName").c_str()).c_str());
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, wio->mCurlError);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());