mirror of https://github.com/odrling/Aegisub
Fix crashes after reloading automation scripts
Originally committed to SVN as r6447.
This commit is contained in:
parent
489d5bbec6
commit
51cbc353b3
|
@ -215,6 +215,9 @@ public:
|
|||
find_if(dynamic_items.begin(), dynamic_items.end(), menu_item_cmp(item));
|
||||
if (it != dynamic_items.end())
|
||||
dynamic_items.erase(it);
|
||||
it = find_if(static_items.begin(), static_items.end(), menu_item_cmp(item));
|
||||
if (it != static_items.end())
|
||||
static_items.erase(it);
|
||||
}
|
||||
|
||||
/// Create a MRU menu and register the needed handlers
|
||||
|
|
Loading…
Reference in New Issue