Adium

Changeset 24356

Show
Ignore:
Timestamp:
07/15/2008 12:59:19 PM (6 months ago)
Author:
evands
Message:

Moved 'clear' menu item to be present for all chats, not just one-to-one chats. Fixes #10394

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plugins/WebKit Message View/AIWebKitMessageViewController.m

    r23957 r24356  
    786786                         
    787787        } 
    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 
    789798        if (chatListObject) { 
    790799                NSMenuItem              *menuItem; 
    791800                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 
    801802                NSArray *locations; 
    802803                if ([chatListObject isIntentionallyNotAStranger]) { 
     
    826827                        [webViewMenuItem release]; 
    827828                } 
    828                  
     829        } 
     830 
     831        if ([webViewMenuItems count]) 
    829832                [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]; 
    839841         
    840842        return webViewMenuItems;