summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-19 19:53:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-19 19:53:28 +0300
commitbd5ebdedb78b145120affe161d91389ac27e71ef (patch)
tree0187a44219d4a0d2f94ee9270e6a9499cad772cf /src/gui/windows/socialwindow.cpp
parentb5398a7046123e8cc13ebe7da8fb7ccc80885c7d (diff)
downloadmanaverse-bd5ebdedb78b145120affe161d91389ac27e71ef.tar.gz
manaverse-bd5ebdedb78b145120affe161d91389ac27e71ef.tar.bz2
manaverse-bd5ebdedb78b145120affe161d91389ac27e71ef.tar.xz
manaverse-bd5ebdedb78b145120affe161d91389ac27e71ef.zip
Use socialguildtab2.h only if tmwa compilation enabled.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 32f44b511..055b19ed8 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -32,13 +32,14 @@
#include "gui/widgets/tabs/socialattacktab.h"
#include "gui/widgets/tabs/socialfriendstab.h"
#include "gui/widgets/tabs/socialguildtab.h"
-#include "gui/widgets/tabs/socialguildtab2.h"
#include "gui/widgets/tabs/socialnavigationtab.h"
#include "gui/widgets/tabs/socialpartytab.h"
#include "gui/widgets/tabs/socialpickuptab.h"
#include "gui/widgets/tabs/socialplayerstab.h"
#ifdef TMWA_SUPPORT
+#include "gui/widgets/tabs/socialguildtab2.h"
+
#include "net/tmwa/guildmanager.h"
#endif
@@ -183,11 +184,13 @@ bool SocialWindow::addTab(Guild *const guild)
tab = new SocialGuildTab(this, guild,
getOptionBool("showtabbackground"));
}
+#ifdef TMWA_SUPPORT
else
{
tab = new SocialGuildTab2(this, guild,
getOptionBool("showtabbackground"));
}
+#endif // TMWA_SUPPORT
mGuilds[guild] = tab;
mTabs->addTab(tab, tab->mScroll);