diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-02 01:58:49 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-02 01:58:49 +0200 |
commit | d4c08d3bf69410a35a50875de50cc6fe74b3bf3e (patch) | |
tree | f4c780e58f650ab615875700d62b94469ddefcf7 /src | |
parent | fa1d12feaffab6e75257deac1663e0e36b82346e (diff) | |
download | manaplus-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.tar.gz manaplus-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.tar.bz2 manaplus-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.tar.xz manaplus-d4c08d3bf69410a35a50875de50cc6fe74b3bf3e.zip |
Dont show "add to trade ..." menu items if trade window is hidden.
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) |