]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix NS toolbar identifier (bug#54326)
authorAlan Third <alan@idiocy.org>
Thu, 10 Mar 2022 21:23:55 +0000 (21:23 +0000)
committerAlan Third <alan@idiocy.org>
Thu, 10 Mar 2022 21:23:55 +0000 (21:23 +0000)
* src/nsterm.m ([EmacsWindow createToolbar:]): Set the identifier to
something that will always be unique to that frame.

src/nsterm.m

index 4adb13706d97da20897baa94de1cad6b28c21711..fd56094c28b4a8e18d2946b259353088743980cd 100644 (file)
@@ -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);