summaryrefslogtreecommitdiff
path: root/src/gui/windows/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 00:29:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 00:29:14 +0300
commit00509dd2dc2d0eed4b1ccc0788ab5b721deb7228 (patch)
tree6ea8be55b96b74f8a6603736757ee1ef56f97244 /src/gui/windows/whoisonline.cpp
parent9359de081508e8494fe137b49264a032f44f12ac (diff)
downloadmv-00509dd2dc2d0eed4b1ccc0788ab5b721deb7228.tar.gz
mv-00509dd2dc2d0eed4b1ccc0788ab5b721deb7228.tar.bz2
mv-00509dd2dc2d0eed4b1ccc0788ab5b721deb7228.tar.xz
mv-00509dd2dc2d0eed4b1ccc0788ab5b721deb7228.zip
Remove ServerFeatures haveOnlineList, because it depend only on server type.
Diffstat (limited to 'src/gui/windows/whoisonline.cpp')
-rw-r--r--src/gui/windows/whoisonline.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index 140815c02..119b31664 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -58,6 +58,8 @@
#include "utils/gettext.h"
#include "utils/sdlhelper.h"
+#include "net/net.h"
+
#ifndef TMWA_SUPPORT
#include <curl/curl.h>
#endif // TMWA_SUPPORT
@@ -118,7 +120,9 @@ WhoIsOnline::WhoIsOnline() :
mUpdateOnlineList(config.getBoolValue("updateOnlineList")),
mGroupFriends(true),
mServerSideList(serverFeatures->haveServerOnlineList()),
- mWebList(serverFeatures->haveOnlineList())
+#ifdef TMWA_SUPPORT
+ mWebList(Net::getNetworkType() == ServerType::TMWATHENA)
+#endif
{
mCurlError[0] = 0;
setWindowName("WhoIsOnline");