diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-02-23 04:47:57 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-23 14:29:27 +0000 |
commit | 4ce429b7f949524b5392d91cf480c933882d15d9 (patch) | |
tree | 4773fa8245e655eeab6b2100153d51e736ffc473 | |
parent | d89237ed642be0c2fa70c864887a308c59ffd2fe (diff) | |
download | mana-4ce429b7f949524b5392d91cf480c933882d15d9.tar.gz mana-4ce429b7f949524b5392d91cf480c933882d15d9.tar.bz2 mana-4ce429b7f949524b5392d91cf480c933882d15d9.tar.xz mana-4ce429b7f949524b5392d91cf480c933882d15d9.zip |
Add BeingPopup hiding.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index b3d0b059..48f19b9a 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -479,9 +479,9 @@ void Viewport::mouseMoved(gcn::MouseEvent &event) mSelectedBeing = beingManager->findBeingByPixel(x, y); if (Player *p = dynamic_cast<Player*>(mSelectedBeing)) - { mBeingPopup->show(getMouseX(), getMouseY(), p); - } + else + mBeingPopup->setVisible(false); } void Viewport::toggleDebugPath() |