godot/scene/gui
Hein-Pieter van Braam e4733c5fc4 Delay emitting pressed signals in PopupMenu
When processing items we may actually delete the item we're processing
in the callback for the signal. To avoid this, call the signal after
we're done processing the items. But before hiding the popupmenu itself.

Thanks to @reduz for writing the whole solution.

This fixes #19842

(cherry picked from commit fa7eac8a0d)
2019-07-03 13:55:23 +02:00
..
base_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
base_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
box_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
box_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
center_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
center_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
check_box.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
check_box.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
check_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
check_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
color_picker.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
color_picker.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
color_rect.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
color_rect.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
control.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
control.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
dialogs.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
dialogs.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
file_dialog.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
file_dialog.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
gradient_edit.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
gradient_edit.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
graph_edit.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
graph_edit.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
graph_node.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
graph_node.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
grid_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
grid_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
item_list.cpp Export: Properly reload preset when opening dialog 2019-07-03 13:23:10 +02:00
item_list.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
label.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
label.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
line_edit.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
line_edit.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
link_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
link_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
margin_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
margin_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
menu_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
menu_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
nine_patch_rect.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
nine_patch_rect.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
option_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
option_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
panel_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
panel_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
panel.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
panel.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
popup_menu.cpp Delay emitting pressed signals in PopupMenu 2019-07-03 13:55:23 +02:00
popup_menu.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
popup.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
popup.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
progress_bar.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
progress_bar.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
range.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
range.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
reference_rect.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
reference_rect.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
rich_text_label.cpp Fix underline_meta not working in RichTextLabel 2019-07-03 12:43:24 +02:00
rich_text_label.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
scroll_bar.cpp fix scrollbar icons with atlas texture. 2019-07-03 13:07:12 +02:00
scroll_bar.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
scroll_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
scroll_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
separator.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
separator.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
shortcut.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
shortcut.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
slider.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
slider.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
spin_box.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
spin_box.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
split_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
split_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tab_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tab_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tabs.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tabs.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
text_edit.cpp Reset caret blink when Ctrl+moving the cursor 2019-07-03 13:35:41 +02:00
text_edit.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
texture_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
texture_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
texture_progress.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
texture_progress.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
texture_rect.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
texture_rect.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tool_button.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tool_button.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tree.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tree.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
video_player.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
video_player.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
viewport_container.cpp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
viewport_container.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00