Changeset 4283

Show
Ignore:
Timestamp:
06/09/06 22:24:38 (2 years ago)
Author:
morris
Message:

Don't auto-connect if option key is held down

Files:

Legend:

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

    r4151 r4283  
    354354        } 
    355355         
    356         enumerator = [[WCSettings objectForKey:WCBookmarks] objectEnumerator]; 
    357  
    358         while((bookmark = [enumerator nextObject])) { 
    359                 if([[bookmark objectForKey:WCBookmarksAutoJoin] boolValue]) 
    360                         [self _connectWithBookmark:bookmark]; 
     356        if((GetCurrentKeyModifiers() & optionKey) == 0) { 
     357                enumerator = [[WCSettings objectForKey:WCBookmarks] objectEnumerator]; 
     358 
     359                while((bookmark = [enumerator nextObject])) { 
     360                        if([[bookmark objectForKey:WCBookmarksAutoJoin] boolValue]) 
     361                                [self _connectWithBookmark:bookmark]; 
     362                } 
    361363        } 
    362364}