Skip to content

QtFRED fix waypoint initial orders - #7664

Open
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-fix-waypoint-order-target
Open

QtFRED fix waypoint initial orders#7664
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-fix-waypoint-order-target

Conversation

@MjnMixael

Copy link
Copy Markdown
Contributor

New initial orders start with no committed target (_object == -1). The target combo visually defaults to its first item, but with signals blocked that selection is never pushed to the model, and re-picking the already-shown item emits no change signal. Ship/player targets auto-commit their first valid entry inline during population; waypoint paths, individual waypoints, ship classes, and wings did not, so a new order of those types stayed uncommitted and failed validation on apply.

Add a uniform fallback after the target combos are populated. If a new order has no committed target, commit the currently-shown default.

New initial orders start with no committed target (_object == -1). The
target combo visually defaults to its first item, but with signals blocked
that selection is never pushed to the model, and re-picking the already-shown
item emits no change signal. Ship/player targets auto-commit their first
valid entry inline during population; waypoint paths, individual waypoints,
ship classes, and wings did not, so a new order of those types stayed
uncommitted and failed validation on apply.

Add a uniform fallback after the target combos are populated: if a new order
has no committed target, commit the currently-shown default. No-op for ships
(already committed) and existing orders (loaded with a target already set).
@MjnMixael MjnMixael added the qtfred A feature or issue related to qtFred. label Jul 28, 2026
@github-project-automation github-project-automation Bot moved this to Work In Progress (PRs) in qtFRED2 Jul 28, 2026
@github-project-automation github-project-automation Bot moved this from Work In Progress (PRs) to In Review (PRs) in qtFRED2 Jul 29, 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