diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/gui/popupmenu.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,8 @@ function. * src/being.cpp: Set font back to gui font after drawing speech. Draw auto-target marker in engine instead of being. + * src/gui/popupmenu.cpp: Fixed empty popup window being shown when user + right clicks on an empty tile while the popup is visible. 2005-07-26 Eugenio Favalli <elvenprogrammer@gmail.com> 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; } |