summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/equipmentwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 2a0ad96bb..bb1fc325b 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -233,6 +233,9 @@ void EquipmentWindow::mousePressed(gcn::MouseEvent& mouseEvent)
{
if (Item *item = getItem(x, y))
{
+ if (mItemPopup)
+ mItemPopup->setVisible(false);
+
/* Convert relative to the window coordinates to absolute screen
* coordinates.
*/