From: Alan Third Date: Thu, 10 Mar 2022 21:23:55 +0000 (+0000) Subject: Fix NS toolbar identifier (bug#54326) X-Git-Tag: emacs-29.0.90~1933 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22dde4e621fb49b9f05d560aee22332ad60bf485;p=emacs.git Fix NS toolbar identifier (bug#54326) * src/nsterm.m ([EmacsWindow createToolbar:]): Set the identifier to something that will always be unique to that frame. --- diff --git a/src/nsterm.m b/src/nsterm.m index 4adb13706d9..fd56094c28b 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8390,7 +8390,7 @@ not_in_argv (NSString *arg) EmacsToolbar *toolbar = [[EmacsToolbar alloc] initForView:view - withIdentifier:[NSString stringWithLispString:f->name]]; + withIdentifier:[NSString stringWithFormat:@"%p", f]]; [self setToolbar:toolbar]; update_frame_tool_bar_1 (f, toolbar);