diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-01 22:05:46 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-01 22:45:31 -0600 |
commit | cec8045dcdad05d76141d4e27c8c9e72696ce7dc (patch) | |
tree | 0c7cded281b0ff01b2f0f0d74f44fc88e2622533 /src/gui/popupmenu.cpp | |
parent | a3e61c0e830c46b51c0d135962ad361c02b93243 (diff) | |
download | mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.gz mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.bz2 mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.tar.xz mana-cec8045dcdad05d76141d4e27c8c9e72696ce7dc.zip |
Remove isActive methods from NPC dialogs and InventoryWindow
Uses counts in PlayerInfo instead.
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 76569d38..7bf1d4fb 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -28,6 +28,7 @@ #include "item.h" #include "localplayer.h" #include "log.h" +#include "playerinfo.h" #include "playerrelations.h" #include "gui/chat.h" @@ -381,7 +382,7 @@ void PopupMenu::showPopup(Window *parent, int x, int y, Item *item, mBrowserBox->addRow(strprintf("@@split|%s@@", _("Split"))); } - if (InventoryWindow::isStorageActive()) + if (PlayerInfo::getStorageCount() > 0) { mBrowserBox->addRow(strprintf("@@store|%s@@", _("Store"))); } |