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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user