From 574ef501d32c7735d2aed022f2a3761d053bbe7c Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 6 May 2009 16:34:06 -0600 Subject: Clean up the bypass code for the ItemAmountWindow --- src/gui/trade.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/gui/trade.cpp') diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index fa662d1a..1e7faa97 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -271,15 +271,8 @@ void TradeWindow::action(const gcn::ActionEvent &event) return; } - if (item->getQuantity() == 1) - { - tradeItem(item, 1); - } - else - { - // Choose amount of items to trade - new ItemAmountWindow(ItemAmountWindow::TradeAdd, this, item); - } + // Choose amount of items to trade + ItemAmountWindow::showWindow(ItemAmountWindow::TradeAdd, this, item); setStatus(PREPARING); } -- cgit v1.2.3-70-g09d2