From d557ce63e240960746e48c678b4a08ba66f7fe40 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Feb 2017 16:58:18 +0300 Subject: Add custom currency also into shop items list. --- src/gui/windows/shopwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/shopwindow.cpp') diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index b09b44a46..f308cb5b5 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -107,8 +107,8 @@ ShopWindow::ShopWindow() : SelectionListener(), // TRANSLATORS: shop window button mCloseButton(new Button(this, _("Close"), "close", this)), - mBuyShopItems(new ShopItems), - mSellShopItems(new ShopItems), + mBuyShopItems(new ShopItems(false, DEFAULT_CURRENCY)), + mSellShopItems(new ShopItems(false, DEFAULT_CURRENCY)), mTradeItem(nullptr), mBuyShopItemList(CREATEWIDGETR(ShopListBox, this, mBuyShopItems, mBuyShopItems, ShopListBoxType::BuyShop)), @@ -952,7 +952,8 @@ void ShopWindow::processRequest(const std::string &nick, std::string data, ItemType::Unknown, ItemColor_one, amount, - price); + price, + DEFAULT_CURRENCY); if (mode == BUY) { -- cgit v1.2.3-70-g09d2