Skip to content

Fixing crash in CampaignSelection - #1803

Merged
Flow86 merged 4 commits into
Return-To-The-Roots:masterfrom
Noseey:fix_menu_crash
Sep 29, 2025
Merged

Fixing crash in CampaignSelection#1803
Flow86 merged 4 commits into
Return-To-The-Roots:masterfrom
Noseey:fix_menu_crash

Conversation

@Noseey

@Noseey Noseey commented Sep 28, 2025

Copy link
Copy Markdown
Contributor

Changes Summary

In the campaign selection screen, it is possible to click "next" without previously selecting any campaign from the table, which results in a crash. This PR fixes it by having the "next" button disabled upon creation.

.. since no campaign selection is done up until that point by the user.

@Flamefire Flamefire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch!
Minor enhancement to avoid the lookup and casting

Comment thread libs/s25main/desktops/dskCampaignSelection.cpp Outdated
Flamefire
Flamefire previously approved these changes Sep 29, 2025
@Flamefire
Flamefire enabled auto-merge September 29, 2025 15:13
Comment thread libs/s25main/desktops/dskCampaignSelection.cpp Outdated
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
auto-merge was automatically disabled September 29, 2025 15:17

Head branch was pushed to by a user without write access

@Flamefire
Flamefire enabled auto-merge September 29, 2025 15:19
@Flow86
Flow86 disabled auto-merge September 29, 2025 17:34
@Flow86
Flow86 merged commit 1fa9d9e into Return-To-The-Roots:master Sep 29, 2025
1 check was pending
@Noseey
Noseey deleted the fix_menu_crash branch September 29, 2025 19:55
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.

3 participants