mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Fix Alt+T -> Alt+V instantly crashes Aseprite without warning (fix #4221)
This commit is contained in:
parent
3f00b3e593
commit
ba9ede873c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user