Adium

Changeset 24028

Show
Ignore:
Timestamp:
06/21/2008 12:33:03 AM (5 months ago)
Author:
catfish_man
Message:

Avoid rebuilding the contact menu unnecessarily. Refs #10135. Please test the menubar duck heavily after this change, as I am not 100% certain of its correctness

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/AIContactMenu.m

    r23380 r24028  
    8585{ 
    8686        AIListObject *changedObject = [notification object]; 
    87         if (changedObject == containingObject) { 
     87        if (changedObject && changedObject == containingObject) { 
    8888                [self rebuildMenu]; 
    8989        } 
     
    137137         
    138138        [delegate contactMenu:self didRebuildMenuItems:[self menuItems]]; 
    139 }       
     139} 
    140140 
    141141/*!