fix: Program crash caused by missing ImGui::BeginDisabled() #1667
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem description
Merging my previous PRs, #1660 and #1658 has resulted in a conflict causing an application crash due to a missing
ImGui::BeginDisabled();
in thePopupSelect
class. Specifically, none of the code related to offset validation made it into the final merge. This PR fixes the crash by reintroducing the deleted lines.Additional things
The nightly release build seems to be unaffected by the crash, most likely because ImGui's
DisabledStack
assertions are only enforced in Debug mode. The offset validation was still missing before this fix.