Merge pull request #63195 from Rindbee/fix-wrong-clear-edit-menu

This commit is contained in:
Rémi Verschelde 2022-07-19 13:49:43 +02:00 committed by GitHub
commit 8351d75b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1420,7 +1420,9 @@ Control *ScriptTextEditor::get_edit_menu() {
}
void ScriptTextEditor::clear_edit_menu() {
memdelete(edit_hb);
if (editor_enabled) {
memdelete(edit_hb);
}
}
void ScriptTextEditor::set_find_replace_bar(FindReplaceBar *p_bar) {