From beaddb973febb0570a9d035c2221e4fd06e3ac47 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Sep 2014 14:25:57 +0300 Subject: Move shop sell code from SellDialog into ShopSellDialog. --- src/gui/windows/selldialog.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/gui/windows/selldialog.cpp') 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); } } -- cgit v1.2.3-70-g09d2