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

This commit is contained in:
Gaspar Capello 2023-12-27 10:54:11 -03:00 committed by David Capello
parent 3f00b3e593
commit ba9ede873c

View File

@ -323,6 +323,9 @@ void MenuItem::setSubmenu(Menu* menu)
void MenuItem::openSubmenu() void MenuItem::openSubmenu()
{ {
MenuBaseData* base = get_base(this);
if (base && base->is_processing)
return;
if (auto menu = static_cast<Menu*>(parent())) if (auto menu = static_cast<Menu*>(parent()))
menu->highlightItem(this, true, true, true); menu->highlightItem(this, true, true, true);
} }