summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-20 16:51:35 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-20 16:51:35 +0200
commit5a971849311079eb4892cb9f892d2d4246810a7f (patch)
treebd7c15c373005274b03b7a588d49a1bd841fbf4c /scene
parent3eb585e478d81a3181c2f32356d6a0c69c19db4a (diff)
[Windows] Fix pop-up dialogs instantly closing.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/popup_menu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp
index d7139d0140..c9fddc3e17 100644
--- a/scene/gui/popup_menu.cpp
+++ b/scene/gui/popup_menu.cpp
@@ -1403,12 +1403,12 @@ void PopupMenu::activate_item(int p_item) {
need_hide = false;
}
- emit_signal(SNAME("id_pressed"), id);
- emit_signal(SNAME("index_pressed"), p_item);
-
if (need_hide) {
hide();
}
+
+ emit_signal(SNAME("id_pressed"), id);
+ emit_signal(SNAME("index_pressed"), p_item);
}
void PopupMenu::remove_item(int p_idx) {