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

Fx Alt+T -> Alt+V instantly crashes Aseprite without warning (fix #4221) #4238

Merged
merged 1 commit into from Dec 27, 2023

Conversation

Gasparoken
Copy link
Member

First approach.

fix #4221

Copy link
Member

@martincapello martincapello left a comment

Choose a reason for hiding this comment

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

The fix works as expected, but I would need some clarification about an if condition.

src/ui/menu.cpp Outdated
Comment on lines 648 to 656
MenuItem* child_with_submenu_opened = nullptr;
findChildWithSubmenuOpened(menu, child_with_submenu_opened);
if (child_with_submenu_opened &&
child_with_submenu_opened->inBar() &&
this->type() == kMenuBarWidget &&
msg->modifiers() == kKeyAltModifier) {
cancelMenuLoop();
}

Copy link
Member

Choose a reason for hiding this comment

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

I've been testing the fix and it works great. The only thing I'm not sure about is this piece of code, which I couldn't figure out how to make this if condition true. I also tested the fix without this code and it seems to work as well. So I would love to know what I am missing here.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right! Thank you!

@Gasparoken Gasparoken assigned dacap and unassigned Gasparoken Dec 27, 2023
@dacap dacap merged commit ba9ede8 into aseprite:main Dec 27, 2023
7 checks passed
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.

Alt+T -> Alt+V instantly crashes Aseprite without warning
3 participants