Skip to content

Commit

Permalink
Merge pull request #84302 from YuriSizov/editor-forget-about-file-dia…
Browse files Browse the repository at this point in the history
…logs-willya

Disconnect `EditorNode` from file dialogs on destruction
  • Loading branch information
akien-mga committed Nov 1, 2023
2 parents 1267c58 + 8c39a2d commit b797f6c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8076,6 +8076,17 @@ EditorNode::~EditorNode() {
GDExtensionEditorPlugins::editor_node_add_plugin = nullptr;
GDExtensionEditorPlugins::editor_node_remove_plugin = nullptr;

FileDialog::get_icon_func = nullptr;
FileDialog::register_func = nullptr;
FileDialog::unregister_func = nullptr;

EditorFileDialog::get_icon_func = nullptr;
EditorFileDialog::register_func = nullptr;
EditorFileDialog::unregister_func = nullptr;

file_dialogs.clear();
editor_file_dialogs.clear();

singleton = nullptr;
}

Expand Down

0 comments on commit b797f6c

Please sign in to comment.