Changeset 24356
- Timestamp:
- 07/15/2008 12:59:19 PM (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plugins/WebKit Message View/AIWebKitMessageViewController.m
r23957 r24356 786 786 787 787 } 788 788 789 if (webViewMenuItems) { 790 //Add a separator item if items already exist in webViewMenuItems 791 if ([webViewMenuItems count]) { 792 [webViewMenuItems addObject:[NSMenuItem separatorItem]]; 793 } 794 } else { 795 webViewMenuItems = [NSMutableArray array]; 796 } 797 789 798 if (chatListObject) { 790 799 NSMenuItem *menuItem; 791 800 NSEnumerator *enumerator; 792 if (webViewMenuItems) { 793 //Add a separator item if items already exist in webViewMenuItems 794 if ([webViewMenuItems count]) { 795 [webViewMenuItems addObject:[NSMenuItem separatorItem]]; 796 } 797 } else { 798 webViewMenuItems = [NSMutableArray array]; 799 } 800 801 801 802 NSArray *locations; 802 803 if ([chatListObject isIntentionallyNotAStranger]) { … … 826 827 [webViewMenuItem release]; 827 828 } 828 829 } 830 831 if ([webViewMenuItems count]) 829 832 [webViewMenuItems addObject:[NSMenuItem separatorItem]]; 830 831 //Present an option to clear the display 832 menuItem = [[NSMenuItem alloc] initWithTitle:AILocalizedString(@"Clear Display", "Clears the display window for the currently open message window") 833 target:self 834 action:@selector(clearView) 835 keyEquivalent:@""]; 836 [webViewMenuItems addObject:menuItem]; 837 [menuItem release]; 838 } 833 834 //Present an option to clear the display 835 menuItem = [[NSMenuItem alloc] initWithTitle:AILocalizedString(@"Clear Display", "Clears the display window for the currently open message window") 836 target:self 837 action:@selector(clearView) 838 keyEquivalent:@""]; 839 [webViewMenuItems addObject:menuItem]; 840 [menuItem release]; 839 841 840 842 return webViewMenuItems;