summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-16 21:26:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-16 21:26:24 +0300
commitc3be771906112df05821dc82539fdca2bf3d7991 (patch)
treee086c35abaa0cae75c1543eb22dbff844e0671a8 /src/gui/windows/shopwindow.cpp
parentcd25589ba6143591389095eb25a260e350edc699 (diff)
downloadplus-c3be771906112df05821dc82539fdca2bf3d7991.tar.gz
plus-c3be771906112df05821dc82539fdca2bf3d7991.tar.bz2
plus-c3be771906112df05821dc82539fdca2bf3d7991.tar.xz
plus-c3be771906112df05821dc82539fdca2bf3d7991.zip
Build buyingstoreslotslistener only if eathena support enabled.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 32580454d..c4795dd9e 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -84,14 +84,14 @@ ShopWindow::DialogList ShopWindow::instances;
ShopWindow::ShopWindow() :
// TRANSLATORS: shop window name
Window(_("Personal Shop"), false, nullptr, "shop.xml"),
- ActionListener(),
- SelectionListener(),
VendingModeListener(),
VendingSlotsListener(),
#ifdef EATHENA_SUPPORT
BuyingStoreModeListener(),
-#endif
BuyingStoreSlotsListener(),
+#endif
+ ActionListener(),
+ SelectionListener(),
// TRANSLATORS: shop window button
mCloseButton(new Button(this, _("Close"), "close", this)),
mBuyShopItems(new ShopItems),
@@ -1074,13 +1074,13 @@ void ShopWindow::setShopName(const std::string &name)
updateShopName();
}
+#ifdef EATHENA_SUPPORT
void ShopWindow::buyingStoreSlotsChanged(const int slots)
{
mBuyShopSize = slots;
updateButtonsAndLabels();
}
-#ifdef EATHENA_SUPPORT
void ShopWindow::buyingStoreEnabled(const bool b)
{
mEnableBuyingStore = b;