Skip to content

fixed the map editor crash after pressing cancel#388

Open
akiraravencross wants to merge 1 commit intoMegaGlest:developfrom
akiraravencross:fix/map-editor-cancel-crash
Open

fixed the map editor crash after pressing cancel#388
akiraravencross wants to merge 1 commit intoMegaGlest:developfrom
akiraravencross:fix/map-editor-cancel-crash

Conversation

@akiraravencross
Copy link
Copy Markdown

Fixes #353

In onClose(), after the user clicks Yes to save, if they then click cancel code proceeds to delete the program object.

A simple fix is to just deny the map editor window the ability to close whatever the choice may be after "yes" (cancel or save). Seems to work fine without any crashes after the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map editor crashes if cancel is clicked after clicking 'yes' to save map

1 participant