You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix incorrectly clearing edit menu
Delete only if `editor_enabled` is true, otherwise destructor may delete it repeatedly.
This commit is contained in:
@@ -1420,7 +1420,9 @@ Control *ScriptTextEditor::get_edit_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ScriptTextEditor::clear_edit_menu() {
|
void ScriptTextEditor::clear_edit_menu() {
|
||||||
|
if (editor_enabled) {
|
||||||
memdelete(edit_hb);
|
memdelete(edit_hb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptTextEditor::set_find_replace_bar(FindReplaceBar *p_bar) {
|
void ScriptTextEditor::set_find_replace_bar(FindReplaceBar *p_bar) {
|
||||||
|
|||||||
Reference in New Issue
Block a user