summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-02 01:58:49 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-02 01:58:49 +0200
commitd4c08d3bf69410a35a50875de50cc6fe74b3bf3e (patch)
treef4c780e58f650ab615875700d62b94469ddefcf7 /src/gui
parentfa1d12feaffab6e75257deac1663e0e36b82346e (diff)
downloadmv-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.tar.gz
mv-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.tar.bz2
mv-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.tar.xz
mv-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.zip
Dont show "add to trade ..." menu items if trade window is hidden.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popupmenu.cpp2
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)