summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-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 eec7bba4c..54eaaf58d 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -359,8 +359,11 @@ void EquipmentWindow::mouseExited(gcn::MouseEvent &event A_UNUSED)
void EquipmentWindow::setSelected(const int index)
{
mSelected = index;
+ mRedraw = true;
if (mUnequip)
mUnequip->setEnabled(mSelected != -1);
+ if (mItemPopup)
+ mItemPopup->setVisible(false);
}
void EquipmentWindow::setBeing(Being *const being)