mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix crash on quit when settings_changed signal is emitted during exit
Add `is_inside_tree()` guard to `GameView::_editor_or_project_settings_changed()` to prevent accessing invalid state when the signal is emitted during editor shutdown. Fixes #113829
This commit is contained in:
@@ -507,6 +507,10 @@ void GameView::_embedded_process_focused() {
|
||||
}
|
||||
|
||||
void GameView::_editor_or_project_settings_changed() {
|
||||
if (!is_inside_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Update the window size and aspect ratio.
|
||||
_update_embed_window_size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user