Skip to content

QtFRED align object dialog initialization#7644

Open
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-object-dialog-init
Open

QtFRED align object dialog initialization#7644
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-object-dialog-init

Conversation

@MjnMixael

Copy link
Copy Markdown
Contributor

This PR fixes a freeze when cycling wings with the Ship Editor open: bulk selection changes fire objectMarkingChanged once per object, and each signal triggered a full dialog rebuild. All selection-driven dialog models (Ship, Wing, Prop, JumpNode, Waypoint, Scene Browser) now coalesce these bursts into a single deferred refresh.

This snowballed into making the Ship Editor aligned with the newer object-dialog architecture: the model owns the Editor subscriptions and emits shipMarkingChanged, while the dialog's legacy updateUi(bool overwrite) + updateColumn* methods were flattened into the canonical initializeUi()/updateUi() split used by the other object dialogs. Style cleanup removed the trivial closeEvent/hideEvent/showEvent overrides (which caused a redundant double-init on every open) and renamed the Wing Editor's refreshAllDynamicCombos() to initializeUi() to match.

Also fixed a latent cargo-combo bug where findText()'s index was tested as a boolean, leaving the combo blank for custom cargo and duplicating the first entry when the cargo matched it.

@MjnMixael MjnMixael added the qtfred A feature or issue related to qtFred. label Jul 23, 2026
@github-project-automation github-project-automation Bot moved this to Work In Progress (PRs) in qtFRED2 Jul 23, 2026

@JohnAFernandez JohnAFernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks basically good. I want to get this in for the nightly because we plan to have tomorrow be just SDL3

@github-project-automation github-project-automation Bot moved this from Work In Progress (PRs) to In Review (PRs) in qtFRED2 Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qtfred A feature or issue related to qtFred.

Projects

Status: In Review (PRs)

Development

Successfully merging this pull request may close these issues.

2 participants