From 34e18a818a7696629515c39b920ba35b64832748 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Tue, 26 Jul 2005 20:14:45 +0000 Subject: Fixed empty popup window being shown when user right clicks on an empty tile while popup is visible. --- src/gui/popupmenu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/popupmenu.cpp') 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; } -- cgit v1.2.3-70-g09d2