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

QT Fred Boillerplate Removal and Memory Safety #6493

Merged
merged 18 commits into from
Jan 2, 2025

Conversation

TheForce172
Copy link
Contributor

@TheForce172 TheForce172 commented Dec 28, 2024

Implements #6457 and half of #6458. Adds Qt::WA_deleteonclose to all dialogs. and adds a function in misson/utils for a generic close confirmation. Which has been added to most dialogs which did not have there own custom close checks.

This did require moving the modified variable into the abstractdialogbox class so this pull request can't be broken up. Fortunately most of this pull request is copy and paste across all dialogs so while the number of files modified is huge the actual changes are rather small.

@wookieejedi wookieejedi added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. qtfred A feature or issue related to qtFred. labels Dec 28, 2024
qtfred/src/ui/dialogs/LoadoutDialog.cpp Show resolved Hide resolved
qtfred/src/ui/FredView.cpp Outdated Show resolved Hide resolved
qtfred/src/ui/FredView.cpp Outdated Show resolved Hide resolved
qtfred/src/ui/dialogs/MissionSpecDialog.cpp Outdated Show resolved Hide resolved
@wookieejedi wookieejedi merged commit fa8e584 into scp-fs2open:master Jan 2, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup A modification or rewrite of code to make it more understandable or easier to maintain. qtfred A feature or issue related to qtFred.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants