[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src nsmenu.m
From: |
Adrian Robert |
Subject: |
[Emacs-diffs] emacs/src nsmenu.m |
Date: |
Tue, 22 Sep 2009 19:49:50 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Adrian Robert <arobert> 09/09/22 19:49:50
Modified files:
src : nsmenu.m
Log message:
(EmacsMenu-menuNeedsUpdate): Ignore if frame has been deleted (bug
#4492).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/nsmenu.m?cvsroot=emacs&r1=1.25&r2=1.26
Patches:
Index: nsmenu.m
===================================================================
RCS file: /sources/emacs/emacs/src/nsmenu.m,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- nsmenu.m 18 Sep 2009 23:54:06 -0000 1.25
+++ nsmenu.m 22 Sep 2009 19:49:50 -0000 1.26
@@ -568,7 +568,10 @@
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.
- [Emacs-diffs] emacs/src nsmenu.m,
Adrian Robert <=