mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 17:42:12 +00:00
Merge pull request #14501 from Paulb23/close_wrong_scene_issue_13844
Fixed close current scene closing the wrong scene, issue 13844
This commit is contained in:
commit
6b6f94fb0c
@ -1884,7 +1884,10 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|||||||
save_confirmation->set_text(vformat(TTR("Save changes to '%s' before closing?"), scene_filename != "" ? scene_filename : "unsaved scene"));
|
save_confirmation->set_text(vformat(TTR("Save changes to '%s' before closing?"), scene_filename != "" ? scene_filename : "unsaved scene"));
|
||||||
save_confirmation->popup_centered_minsize();
|
save_confirmation->popup_centered_minsize();
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
tab_closing = editor_data.get_edited_scene();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // fallthrough
|
} // fallthrough
|
||||||
case SCENE_TAB_CLOSE:
|
case SCENE_TAB_CLOSE:
|
||||||
case FILE_SAVE_SCENE: {
|
case FILE_SAVE_SCENE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user