Changeset 3672

Show
Ignore:
Timestamp:
02/01/06 17:58:36 (3 years ago)
Author:
morris
Message:

Fix additional bugs with loading users with groups assigned to them

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCAccountEditor.m

    r3650 r3672  
    186186 
    187187- (void)_setForAccount:(WCAccount *)account { 
    188       if([_typePopUpButton selectedItem] == _groupMenuItem) 
     188/*    if([_typePopUpButton selectedItem] == _groupMenuItem) 
    189189                [_nameTextField setStringValue:[account name]]; 
    190190 
     
    195195                        [_groupPopUpButton selectItemWithTitle:[account group]]; 
    196196        } 
    197  
     197*/ 
    198198        [_getUserInfoButton setState:[account getUserInfo]]; 
    199199        [_broadcastButton setState:[account broadcast]]; 
     
    330330                [[notification userInfo] objectForKey:WCArgumentsKey]]; 
    331331         
     332        [_passwordTextField setStringValue:[account password]]; 
     333 
     334        if([[account group] length] > 0) 
     335                [_groupPopUpButton selectItemWithTitle:[account group]]; 
     336 
    332337        [self _setForAccount:account]; 
     338         
     339        [self _updateGroup]; 
    333340 
    334341        [_account release]; 
     
    346353                [[notification userInfo] objectForKey:WCArgumentsKey]]; 
    347354         
     355        if([_typePopUpButton selectedItem] == _groupMenuItem) 
     356                [_nameTextField setStringValue:[account name]]; 
     357 
    348358        [self _setForAccount:account]; 
    349359