-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash on save in rejuv'd Color Schemes page #13902
Conversation
FYI @DHowett as the 1.16 release guru |
src/cascadia/TerminalSettingsEditor/ColorSchemesPageViewModel.cpp
Outdated
Show resolved
Hide resolved
src/cascadia/TerminalSettingsEditor/ColorSchemesPageViewModel.cpp
Outdated
Show resolved
Hide resolved
aw frick, i lied to you
check for |
src/cascadia/TerminalSettingsEditor/ColorSchemesPageViewModel.cpp
Outdated
Show resolved
Hide resolved
@msftbot merge this in 1 minute |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
🎉 Handy links: |
Summary of the Pull Request
Fix a bug where if you pressed the "Save" button, WT would crash. This was caused by adding the possibility that no color scheme is selected in the main page. With no "current scheme", attempting to get its "name" would cause a null ptr exception.
The fix is simple: just check if we actually have a current scheme.
Bonus points: if we don't have a current scheme, don't bother looking throught the color schemes for a match because we'll never find one.
References
#13269 - Color Schemes Rejuv