summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r--src/gui/trade.cpp11
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);
}