Skip to content
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 keybind reset in UILIST context #78198

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Brambor
Copy link
Contributor

@Brambor Brambor commented Nov 28, 2024

Summary

Bugfixes "crash on keybind reset in UILIST"

Purpose of change

  • Fixes Crash when resetting keybinding #73382
  • The crash occurred in all contexts where there were no defaults. UILIST.* is one of them.
    • Another context would be the TEXT.* context, but I dare to say it is impossible to open the keybinding menu for it. I tried rebinding the keybinding menu to ctrl+M, but that didn't work either.

Describe the solution

  • Check whether the context exists. If not, nothing to reset there.
  • Also, don't search twice (find then at), that is all the iterator things.

Describe alternatives you've considered

Testing

Additional context

I don't know why I didn't look into that issue before. I even commented on it! Thanks @ZhilkinSerg.

 - The crash occured in all contexts where there were no defaults. UILIST is one of them.
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) json-styled JSON lint passed, label assigned by github actions labels Nov 28, 2024
@Brambor
Copy link
Contributor Author

Brambor commented Nov 28, 2024

Clang tidy will fail. I want to see if it allows auto for iterators. It probably does not. Edit: Wow, it does!

@github-actions github-actions bot added the astyled astyled PR, label is assigned by github actions label Nov 28, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Nov 28, 2024
@Night-Pryanik Night-Pryanik merged commit 286cff2 into CleverRaven:master Nov 28, 2024
22 of 28 checks passed
@Brambor Brambor deleted the fix-crash-kb-reset branch November 28, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when resetting keybinding
2 participants