Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua Editor : Fix issue #14153 - Crash when closing file #18589

Merged

Conversation

LafLaurine
Copy link
Contributor

What does this PR do?

Fix #14153. The Lua Editor was crashing when modifications were made to a file and closed. This was due to a manual deletion on a QWidget (Qt always have ownership of QWidget).

nocrash

How was this PR tested?

Local build. Tested with the description of the issue :

  • Open an existing script / new script
  • Make a change to the file and save
  • Close the script file
  • Modifying a saved script in Lua Editor, then closing it's tab and choosing either Continue or Save
    => The lua editor doesn't crash anymore

Signed-off-by: LafLaurine <laurine.lafontaine@outlook.fr>
@LafLaurine LafLaurine requested review from a team as code owners January 5, 2025 11:03
Copy link
Contributor

@guillaume-haerinck guillaume-haerinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool change :)

@guillaume-haerinck guillaume-haerinck added feature/scripting This item is related to the scripting tools. sig/content Categorizes an issue or PR as relevant to SIG Content. labels Jan 5, 2025
@lsemp3d lsemp3d merged commit dec26d6 into o3de:development Jan 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/scripting This item is related to the scripting tools. sig/content Categorizes an issue or PR as relevant to SIG Content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lua editor crashes O3DE when closing a recently saved file.
5 participants