summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 00:32:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 00:32:31 +0300
commitc841447e5196a34f62860189b0960d78a0ce1ced (patch)
treee5f05710175f701377cedd9345488726d0224c33 /src/gui/windows
parente5698022dfae8aec4c9b4696dc6a93d5edc84d5d (diff)
downloadmanaplus-c841447e5196a34f62860189b0960d78a0ce1ced.tar.gz
manaplus-c841447e5196a34f62860189b0960d78a0ce1ced.tar.bz2
manaplus-c841447e5196a34f62860189b0960d78a0ce1ced.tar.xz
manaplus-c841447e5196a34f62860189b0960d78a0ce1ced.zip
Remove getter for buySellHandler.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/buydialog.cpp2
-rw-r--r--src/gui/windows/buyselldialog.cpp4
-rw-r--r--src/gui/windows/selldialog.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index c09044f7b..c86ef184a 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -459,7 +459,7 @@ void BuyDialog::action(const ActionEvent &event)
const ShopItem *const item = mShopItems->at(selectedItem);
if (item)
{
- Net::getBuySellHandler()->sendBuyRequest(mNick,
+ buySellHandler->sendBuyRequest(mNick,
item, mAmountItems);
tradeWindow->addAutoMoney(mNick,
item->getPrice() * mAmountItems);
diff --git a/src/gui/windows/buyselldialog.cpp b/src/gui/windows/buyselldialog.cpp
index 238389ce9..f8d2ec954 100644
--- a/src/gui/windows/buyselldialog.cpp
+++ b/src/gui/windows/buyselldialog.cpp
@@ -132,14 +132,14 @@ void BuySellDialog::action(const ActionEvent &event)
if (mNpcId != -1)
Net::getNpcHandler()->buy(mNpcId);
else
- Net::getBuySellHandler()->requestSellList(mNick);
+ buySellHandler->requestSellList(mNick);
}
else if (eventId == "Sell")
{
if (mNpcId != -1)
Net::getNpcHandler()->sell(mNpcId);
else
- Net::getBuySellHandler()->requestBuyList(mNick);
+ buySellHandler->requestBuyList(mNick);
}
close();
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index 70d790733..b62b22976 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -305,7 +305,7 @@ void SellDialog::action(const ActionEvent &event)
else
{
ShopItem *const item = mShopItems->at(selectedItem);
- Net::getBuySellHandler()->sendSellRequest(mNick,
+ buySellHandler->sendSellRequest(mNick,
item, mAmountItems);
if (tradeWindow)