diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popupmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |