1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Prevent closing object selection window when selection is invalid (#23968)

* EditorObjectSelectionWindowCheck: move window close out to caller side

* WindowManager: apply CanClose check again

* Amend changelog
This commit is contained in:
Aaron van Geffen
2025-03-11 21:14:04 +01:00
committed by GitHub
parent 1dd1564904
commit 7411b718bc
4 changed files with 17 additions and 4 deletions

View File

@@ -931,6 +931,12 @@ public:
*/
void Close(WindowBase& w) override
{
if (!w.CanClose())
{
// Something's preventing this window from closing -- bail out early
return;
}
w.OnClose();
// Remove viewport