diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-12 14:50:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-12 14:50:56 +0100 |
| commit | 38122b8d850af0542c28b3e6d535bf472d610354 (patch) | |
| tree | 6e82b56aaed4e03d860855bbcb35bcddcea2c9ca /editor/plugins/script_text_editor.cpp | |
| parent | 51505519c1bbd93abd0ffff41f265cb9695a2bd6 (diff) | |
| parent | 42078dec9f592243209f845766409d01c12ac525 (diff) | |
Merge pull request #59050 from KoBeWi/tsal_eht_morf_ssecca
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
| -rw-r--r-- | editor/plugins/script_text_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 10b6129864..30ca1c605f 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -579,7 +579,7 @@ void ScriptTextEditor::_update_bookmark_list() { } bookmarks_menu->add_item(String::num((int)bookmark_list[i] + 1) + " - `" + line + "`"); - bookmarks_menu->set_item_metadata(bookmarks_menu->get_item_count() - 1, bookmark_list[i]); + bookmarks_menu->set_item_metadata(-1, bookmark_list[i]); } } @@ -731,7 +731,7 @@ void ScriptTextEditor::_update_breakpoint_list() { } breakpoints_menu->add_item(String::num((int)breakpoint_list[i] + 1) + " - `" + line + "`"); - breakpoints_menu->set_item_metadata(breakpoints_menu->get_item_count() - 1, breakpoint_list[i]); + breakpoints_menu->set_item_metadata(-1, breakpoint_list[i]); } } |