Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
201949c3
Commit
201949c3
authored
Sep 22, 2009
by
Adrian Robert
Browse files
(EmacsMenu-menuNeedsUpdate): Ignore if frame has been deleted (bug #4492).
parent
4eb34cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/nsmenu.m
src/nsmenu.m
+4
-1
No files found.
src/nsmenu.m
View file @
201949c3
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment