From 930cb97c7d5e1bd4946564c97ea636ca3ed81963 Mon Sep 17 00:00:00 2001 From: firefly2442 Date: Tue, 8 Sep 2015 22:48:22 -0500 Subject: [PATCH] hide opened menu when click on menu button --- scene/gui/popup_menu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index e706053592f..5afe2ed7048 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -323,8 +323,10 @@ void PopupMenu::_input_event(const InputEvent &p_event) { invalidated_click=false; break; } - if (over<0 || items[over].separator || items[over].disabled) + if (over<0 || items[over].separator || items[over].disabled) { + hide(); break; //non-activable + } if (items[over].submenu!="") {