summaryrefslogtreecommitdiff
path: root/src/gui/windows/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 14:25:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 14:25:57 +0300
commitbeaddb973febb0570a9d035c2221e4fd06e3ac47 (patch)
treef4a6aec77bd0ffd1afb3f06429777b27ccfec42f /src/gui/windows/selldialog.cpp
parentd34decaf8b2b4cbffca970e9059e1a2b4f463055 (diff)
downloadplus-beaddb973febb0570a9d035c2221e4fd06e3ac47.tar.gz
plus-beaddb973febb0570a9d035c2221e4fd06e3ac47.tar.bz2
plus-beaddb973febb0570a9d035c2221e4fd06e3ac47.tar.xz
plus-beaddb973febb0570a9d035c2221e4fd06e3ac47.zip
Move shop sell code from SellDialog into ShopSellDialog.
Diffstat (limited to 'src/gui/windows/selldialog.cpp')
-rw-r--r--src/gui/windows/selldialog.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index cd8c03bdc..32ee2e827 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -245,19 +245,7 @@ void SellDialog::action(const ActionEvent &event)
else if ((eventId == "presell" || eventId == "sell" || eventId == "yes")
&& mAmountItems > 0 && mAmountItems <= mMaxItems)
{
- if (mNpcId != -1)
- {
- sellAction(event);
- }
- else
- {
- ShopItem *const item = mShopItems->at(selectedItem);
- buySellHandler->sendSellRequest(mNick,
- item, mAmountItems);
-
- if (tradeWindow)
- tradeWindow->addAutoItem(mNick, item, mAmountItems);
- }
+ sellAction(event);
}
}