Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui2/unit_create: Fix segfault on empty list when updating unit preview
This happens when the list comes up empty because of a non-matching filter, e.g. "Elvish Archer222" and the user clicks on one of the gender options in this state. Ideally we should clear the preview pane and disable the options and OK button here, but the former appears impossible and for some reason changing the pane's visibility in filter_text_changed() doesn't work reliably. (cherry-picked from commit 26629d4)
- Loading branch information