Commit 201949c3 authored by Adrian Robert's avatar Adrian Robert

(EmacsMenu-menuNeedsUpdate): Ignore if frame has been deleted (bug #4492).

parent 4eb34cc7
......@@ -568,7 +568,10 @@ - (void)setFrame: (struct frame *)f
to set_frame_menubar */
- (void)menuNeedsUpdate: (NSMenu *)menu
{
NSEvent *event = [[FRAME_NS_VIEW (frame) window] currentEvent];
NSEvent *event;
if (!FRAME_LIVE_P (frame))
return;
event = [[FRAME_NS_VIEW (frame) window] currentEvent];
/* HACK: Cocoa/Carbon will request update on every keystroke
via IsMenuKeyEvent -> CheckMenusForKeyEvent. These are not needed
since key equivalents are handled through emacs.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment