diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-16 13:43:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-16 13:43:33 +0300 |
commit | 0680f936ce4be3cbd0cba338d3793d4a7782db60 (patch) | |
tree | aea78503d0ed8d5659cd81e9496efeef69ea49e3 /src/gui/popupmenu.cpp | |
parent | 2af5e3f72aef14b5b541b7c47878e0a13a343b85 (diff) | |
download | plus-0680f936ce4be3cbd0cba338d3793d4a7782db60.tar.gz plus-0680f936ce4be3cbd0cba338d3793d4a7782db60.tar.bz2 plus-0680f936ce4be3cbd0cba338d3793d4a7782db60.tar.xz plus-0680f936ce4be3cbd0cba338d3793d4a7782db60.zip |
Fix crash in context menu.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 715b1d983..16e3d9ec7 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -736,19 +736,8 @@ void PopupMenu::showChatPopup(int x, int y, ChatTab *tab) if (player_relations.getDefault() & PlayerRelation::TRADE) { mBrowserBox->addRow("##3---"); - if (being->isAdvanced()) - { - if (being->isShopEnabled()) - { - mBrowserBox->addRow("buy", _("Buy")); - mBrowserBox->addRow("sell", _("Sell")); - } - } - else - { - mBrowserBox->addRow("buy", _("Buy (?)")); - mBrowserBox->addRow("sell", _("Sell (?)")); - } + mBrowserBox->addRow("buy", _("Buy (?)")); + mBrowserBox->addRow("sell", _("Sell (?)")); } mBrowserBox->addRow("##3---"); } |