summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-23 00:55:41 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-23 00:55:41 +0300
commitcff9e8d8f4bd6b678ad420c9e17eff729eecae4d (patch)
tree1a42c92b6c15c45246a1375fd261c82b0adf009f
parent13c025483bee2510c0fbb6dadf91922dc1b7153e (diff)
downloadplus-cff9e8d8f4bd6b678ad420c9e17eff729eecae4d.tar.gz
plus-cff9e8d8f4bd6b678ad420c9e17eff729eecae4d.tar.bz2
plus-cff9e8d8f4bd6b678ad420c9e17eff729eecae4d.tar.xz
plus-cff9e8d8f4bd6b678ad420c9e17eff729eecae4d.zip
Hide tooltip in equipment window if opening context menu.
-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.
*/