diff options
| author | Juan Linietsky | 2017-01-08 18:18:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-08 18:18:54 -0300 |
| commit | fa170cbc5862f1fbe76702d5fffa26136269cbb9 (patch) | |
| tree | 64f5a53b161ea715d4658df5455fa69d0a56f6ab /tools/editor/editor_run_native.cpp | |
| parent | 1b0930c435b3aa4a3ab41b4936b9ceaa2f1da775 (diff) | |
| download | godot-fa170cbc5862f1fbe76702d5fffa26136269cbb9.tar.gz godot-fa170cbc5862f1fbe76702d5fffa26136269cbb9.tar.zst godot-fa170cbc5862f1fbe76702d5fffa26136269cbb9.zip | |
PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188
Diffstat (limited to 'tools/editor/editor_run_native.cpp')
| -rw-r--r-- | tools/editor/editor_run_native.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_run_native.cpp b/tools/editor/editor_run_native.cpp index f41db6278..caa1bf5db 100644 --- a/tools/editor/editor_run_native.cpp +++ b/tools/editor/editor_run_native.cpp @@ -54,7 +54,7 @@ void EditorRunNative::_notification(int p_what) { Ref<ImageTexture> small_icon = memnew( ImageTexture); small_icon->create_from_image(im); MenuButton *mb = memnew( MenuButton ); - mb->get_popup()->connect("item_pressed",this,"_run_native",varray(E->get())); + mb->get_popup()->connect("id_pressed",this,"_run_native",varray(E->get())); mb->connect("pressed",this,"_run_native",varray(-1, E->get())); mb->set_icon(small_icon); add_child(mb); |
