diff options
author | kobewi <kobewi4e@gmail.com> | 2022-03-12 01:06:45 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-03-12 01:14:03 +0100 |
commit | 42078dec9f592243209f845766409d01c12ac525 (patch) | |
tree | d73198d40081021ae8ab945d58b4482378869c7b /editor/editor_run_native.cpp | |
parent | d5076439e44e6eab5732e1d2fc0f30bb6f34e5f9 (diff) | |
download | redot-engine-42078dec9f592243209f845766409d01c12ac525.tar.gz |
Allow negative indexes in ItemList and PopupMenu
Diffstat (limited to 'editor/editor_run_native.cpp')
-rw-r--r-- | editor/editor_run_native.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp index 85d304ec5d..77f135bb63 100644 --- a/editor/editor_run_native.cpp +++ b/editor/editor_run_native.cpp @@ -83,7 +83,7 @@ void EditorRunNative::_notification(int p_what) { mb->set_tooltip(eep->get_options_tooltip()); for (int i = 0; i < dc; i++) { mb->get_popup()->add_icon_item(eep->get_option_icon(i), eep->get_option_label(i)); - mb->get_popup()->set_item_tooltip(mb->get_popup()->get_item_count() - 1, eep->get_option_tooltip(i)); + mb->get_popup()->set_item_tooltip(-1, eep->get_option_tooltip(i)); } } } |