diff options
Diffstat (limited to 'src/gui/viewport.cpp')
-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() |