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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp
index a28ff0f9..caae33c0 100644
--- a/src/gui/trade.cpp
+++ b/src/gui/trade.cpp
@@ -239,6 +239,8 @@ void TradeWindow::action(const gcn::ActionEvent &event)
if (event.getId() == "add")
{
+ if (!inventoryWindow->isVisible()) return;
+
if (!item)
return;