Changeset 6169
- Timestamp:
- Jun 13, 2008, 4:22:07 AM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PrefsController.h
r6168 r6169 60 60 IBOutlet NSTextField * fProxyAddressField, * fProxyPasswordField; 61 61 IBOutlet NSPopUpButton * fProxyTypePopUp; 62 BOOL fProxyPasswordSet;63 62 64 63 IBOutlet NSTextField * fRPCPortField; -
trunk/macosx/PrefsController.m
r6168 r6169 110 110 [self updateProxyType]; 111 111 112 fProxyPasswordSet = NO; 113 if ([fDefaults boolForKey: @"Proxy"] && [fDefaults boolForKey: @"ProxyAuthorize"]) 114 [self updateProxyPassword]; 112 [self updateProxyPassword]; 115 113 116 114 //update rpc access list … … 678 676 BOOL enable = [fDefaults boolForKey: @"Proxy"]; 679 677 tr_sessionSetProxyEnabled(fHandle, [fDefaults boolForKey: @"Proxy"]); 680 681 //if proxy password hasn't be retrieved, get it now682 if (!fProxyPasswordSet && enable && [fDefaults boolForKey: @"ProxyAuthorize"])683 [self updateProxyPassword];684 678 } 685 679 … … 750 744 BOOL enable = [fDefaults boolForKey: @"ProxyAuthorize"]; 751 745 tr_sessionSetProxyAuthEnabled(fHandle, enable); 752 753 //if proxy password hasn't be retrieved, get it now754 if (!fProxyPasswordSet && enable)755 [self updateProxyPassword];756 746 } 757 747 … … 776 766 } 777 767 768 //user will only be prompted if Keychain is locked and Transmission has changed since last launched 778 769 - (void) updateProxyPassword 779 770 { 780 fProxyPasswordSet = YES;781 782 771 NSString * password; 783 772 EMGenericKeychainItem * keychainItem = [[EMKeychainProxy sharedProxy] genericKeychainItemForService: @"Transmission:Proxy"
Note: See TracChangeset
for help on using the changeset viewer.