Changeset 3632

Show
Ignore:
Timestamp:
03/19/07 11:06:30 (2 years ago)
Author:
timothy
Message:

Prevent calling _topicChanged: twice on join.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Panels/JVChatRoomPanel.m

    r3619 r3632  
    316316        [super changeEncoding:sender]; 
    317317        [[self target] setEncoding:[self encoding]]; 
    318         [self _topicChanged:nil]; 
     318        if( sender ) [self _topicChanged:nil]; 
    319319} 
    320320 
  • trunk/Panels/JVDirectChatPanel.m

    r3628 r3632  
    19361936- (void) setScriptTypedEncoding:(unsigned long) encoding { 
    19371937        [self setPreference:[NSNumber numberWithLong:encoding] forKey:@"encoding"]; 
    1938         [self changeEncoding:nil]; 
     1938        [self changeEncoding:self]; 
    19391939} 
    19401940@end