summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}