diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-19 19:53:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-19 19:53:28 +0300 |
commit | bd5ebdedb78b145120affe161d91389ac27e71ef (patch) | |
tree | 0187a44219d4a0d2f94ee9270e6a9499cad772cf /src/gui/windows/socialwindow.cpp | |
parent | b5398a7046123e8cc13ebe7da8fb7ccc80885c7d (diff) | |
download | plus-bd5ebdedb78b145120affe161d91389ac27e71ef.tar.gz plus-bd5ebdedb78b145120affe161d91389ac27e71ef.tar.bz2 plus-bd5ebdedb78b145120affe161d91389ac27e71ef.tar.xz plus-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.cpp | 5 |
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); |