summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-26 20:14:45 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-26 20:14:45 +0000
commit34e18a818a7696629515c39b920ba35b64832748 (patch)
tree178503733a7cae78f12c51111b2d1fa9fce91180 /src
parent1c43b2cdee5a5508a6e771b477100517deae07e7 (diff)
downloadmana-34e18a818a7696629515c39b920ba35b64832748.tar.gz
mana-34e18a818a7696629515c39b920ba35b64832748.tar.bz2
mana-34e18a818a7696629515c39b920ba35b64832748.tar.xz
mana-34e18a818a7696629515c39b920ba35b64832748.zip
Fixed empty popup window being shown when user right clicks on an empty tile while popup is visible.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popupmenu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 18f90af5..32690bdb 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -105,6 +105,8 @@ void PopupMenu::showPopup(int mx, int my)
else
{
// If there is nothing of interest, don't display menu.
+ // Hide it, because it may have been visible.
+ setVisible(false);
return;
}