diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-06 16:34:06 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-06 16:36:11 -0600 |
commit | 574ef501d32c7735d2aed022f2a3761d053bbe7c (patch) | |
tree | ca5dd0709d6a0d1989af3fab6b1f85c6726a2fb0 /src/gui/trade.cpp | |
parent | 3603521356ad1646d456a1681ff9f8a7c88ab458 (diff) | |
download | mana-574ef501d32c7735d2aed022f2a3761d053bbe7c.tar.gz mana-574ef501d32c7735d2aed022f2a3761d053bbe7c.tar.bz2 mana-574ef501d32c7735d2aed022f2a3761d053bbe7c.tar.xz mana-574ef501d32c7735d2aed022f2a3761d053bbe7c.zip |
Clean up the bypass code for the ItemAmountWindow
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r-- | src/gui/trade.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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); } |