From cec8045dcdad05d76141d4e27c8c9e72696ce7dc Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 1 Aug 2010 22:05:46 -0600 Subject: Remove isActive methods from NPC dialogs and InventoryWindow Uses counts in PlayerInfo instead. Reviewed-by: Chuck Miller --- src/gui/popupmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/popupmenu.cpp') 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"))); } -- cgit v1.2.3-70-g09d2