summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-16 20:40:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-16 20:40:13 +0300
commitcd25589ba6143591389095eb25a260e350edc699 (patch)
treef89bf5fda1cbd82e5303963ad3e08338aae55de4 /src/gui/windows/shopwindow.cpp
parentc6fa5a35e1ed48b6dcb8cc83c7de9563fdca8a71 (diff)
downloadmanaplus-cd25589ba6143591389095eb25a260e350edc699.tar.gz
manaplus-cd25589ba6143591389095eb25a260e350edc699.tar.bz2
manaplus-cd25589ba6143591389095eb25a260e350edc699.tar.xz
manaplus-cd25589ba6143591389095eb25a260e350edc699.zip
Build buyingstoremodelistener only if eathena support enabled.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 8f858b0fe..32580454d 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -88,7 +88,9 @@ ShopWindow::ShopWindow() :
SelectionListener(),
VendingModeListener(),
VendingSlotsListener(),
+#ifdef EATHENA_SUPPORT
BuyingStoreModeListener(),
+#endif
BuyingStoreSlotsListener(),
// TRANSLATORS: shop window button
mCloseButton(new Button(this, _("Close"), "close", this)),
@@ -1078,6 +1080,7 @@ void ShopWindow::buyingStoreSlotsChanged(const int slots)
updateButtonsAndLabels();
}
+#ifdef EATHENA_SUPPORT
void ShopWindow::buyingStoreEnabled(const bool b)
{
mEnableBuyingStore = b;
@@ -1086,3 +1089,4 @@ void ShopWindow::buyingStoreEnabled(const bool b)
mBuyShopSize = 0;
updateButtonsAndLabels();
}
+#endif