summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2022-01-20 20:22:47 +0300
committerGitHub <noreply@github.com>2022-01-20 20:22:47 +0300
commit8fc0dd9997c80059ec2b273e7004daa458d370ee (patch)
tree9d5ec4ca900fa985cfe0d4a43683c09c3d1625e4 /scene/gui
parent7e3b92f81feb0597c657d13797e0ebf449ec2d5d (diff)
parent5a971849311079eb4892cb9f892d2d4246810a7f (diff)
Merge pull request #57001 from bruvzg/popup_dialog_fix
Diffstat (limited to 'scene/gui')
-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) {