Adium

Changeset 15547

Show
Ignore:
Timestamp:
03/23/2006 03:39:01 PM (3 years ago)
Author:
evands
Message:

Closing an authorization request window now sends no response rather than sending a 'deny' response. Fixes #3479.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Resources/AuthorizationRequestWindow.nib/classes.nib

    r15002 r15547  
    2020        },  
    2121        { 
    22             ACTIONS = {authorize = id; };  
    23             CLASS = ESGaimAuthorizationRequestWindowController;  
     22            ACTIONS = {authorize = id; deny = id; };  
     23            CLASS = ESAuthorizationRequestWindowController;  
    2424            LANGUAGE = ObjC;  
    2525            OUTLETS = { 
     
    3030                "textView_message" = NSTextView;  
    3131            };  
    32             SUPERCLASS = ESGaimRequestAbstractWindowController;  
    33         },  
    34         { 
    35             CLASS = ESGaimRequestAbstractWindowController;  
    36             LANGUAGE = ObjC;  
    3732            SUPERCLASS = AIWindowController;  
    3833        },  
  • trunk/Source/ESAuthorizationRequestWindowController.h

    r15001 r15547  
    2626+ (ESAuthorizationRequestWindowController *)showAuthorizationRequestWithDict:(NSDictionary *)inInfoDict  forAccount:(AIAccount *)inAccount; 
    2727- (IBAction)authorize:(id)sender; 
     28- (IBAction)deny:(id)sender; 
    2829 
    2930@end 
  • trunk/Source/ESAuthorizationRequestWindowController.m

    r15001 r15547  
    115115} 
    116116 
    117 - (void)windowWillClose:(id)sender 
     117- (IBAction)deny:(id)sender 
    118118{ 
    119         if (infoDict) { 
    120                 [account authorizationWindowController:self 
    121                                                 authorizationWithDict:infoDict 
    122                                                                  didAuthorize:NO]; 
    123         } 
     119        [account authorizationWindowController:self 
     120                                        authorizationWithDict:infoDict 
     121                                                         didAuthorize:NO];      
     122         
     123        [infoDict release]; infoDict = nil; 
    124124} 
    125125