From d4c08d3bf69410a35a50875de50cc6fe74b3bf3e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Mar 2011 01:58:49 +0200 Subject: Dont show "add to trade ..." menu items if trade window is hidden. --- src/gui/popupmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 15c5d095b..ce82fa745 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1137,7 +1137,7 @@ void PopupMenu::showPopup(Window *parent, int x, int y, Item *item, if (isInventory) { - if (tradeWindow) + if (tradeWindow && tradeWindow->isVisible()) { mBrowserBox->addRow(strprintf("@@addtrade|%s@@", _("Add to trade"))); if (cnt > 1) -- cgit v1.2.3-70-g09d2