Skip to content
Browse files

null screen name

  • Loading branch information...
aglv committed Dec 11, 2018
1 parent aa7b1a9 commit 8d33153377aa599b1dc73306998fe8c47a98f24e
Showing with 3 additions and 1 deletion.
  1. +3 −1 Preference Panes/OSIViewerPreferencePane/O2ScreensPrefsView.m
@@ -197,7 +197,9 @@ - (void)mouseDown:(NSEvent*)theEvent
NSMenu* menu = [[[NSMenu alloc] initWithTitle:@""] autorelease];
NSMenuItem* mi;

[menu addItemWithTitle:[record.screen displayName] action:nil keyEquivalent:@""];
NSString *name = [record.screen displayName];
if (!name) name = NSLocalizedString(@"Untitled Display", nil);
[menu addItemWithTitle:name action:nil keyEquivalent:@""];

[menu addItem:[NSMenuItem separatorItem]];

0 comments on commit 8d33153

Please sign in to comment.
You can’t perform that action at this time.