summaryrefslogtreecommitdiff
path: root/src/gui/itemshortcutcontainer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-08 10:31:55 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-08 10:33:16 -0600
commit2fdfb7b8eb9987620628d68d2193a0ae4de7fa40 (patch)
tree0441b5712a4408657be49ebe0208904918ec6140 /src/gui/itemshortcutcontainer.cpp
parent8ee8ea70b5a32e1b8a5ad3e670cfe9ebee47bb4c (diff)
downloadmana-2fdfb7b8eb9987620628d68d2193a0ae4de7fa40.tar.gz
mana-2fdfb7b8eb9987620628d68d2193a0ae4de7fa40.tar.bz2
mana-2fdfb7b8eb9987620628d68d2193a0ae4de7fa40.tar.xz
mana-2fdfb7b8eb9987620628d68d2193a0ae4de7fa40.zip
Fix showing item popups on the shortcut bar
It no longer requires the inventory window to be open.
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/itemshortcutcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp
index e5d0d1b9..b3ca001d 100644
--- a/src/gui/itemshortcutcontainer.cpp
+++ b/src/gui/itemshortcutcontainer.cpp
@@ -236,7 +236,7 @@ void ItemShortcutContainer::mouseMoved(gcn::MouseEvent &event)
Item *item = player_node->getInventory()->findItem(itemId);
- if (item && inventoryWindow->isVisible())
+ if (item)
{
mItemPopup->setItem(item->getInfo());
mItemPopup->view(viewport->getMouseX(), viewport->getMouseY());