Adium

Changeset 25578

Show
Ignore:
Timestamp:
11/13/2008 10:08:31 AM (2 months ago)
Author:
evands
Message:

Don't check "Show X recent messages" when logging isn't enabled. Fixes #11359. (English only; other localizations will work as before and will get the new behavior when updated from the English nib)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plugins/General Preferences/ESGeneralPreferences.m

    r25439 r25578  
    4949// This comes from http://wafflesoftware.net/shortcut/ 
    5050 
     51+ (NSSet *)keyPathsForValuesAffectingChatHistoryDisplayActive 
     52{ 
     53        return [NSSet setWithObject:@"adium.preferenceController.Logging.Enable Logging"]; 
     54} 
     55 
    5156//Preference pane properties 
    5257- (NSString *)paneIdentifier 
     
    6974{ 
    7075        BOOL                    sendOnEnter, sendOnReturn; 
    71          
     76 
    7277        //Interface 
    7378    [checkBox_messagesInTabs setState:[[adium.preferenceController preferenceForKey:KEY_TABBED_CHATTING 
     
    281286                                           tag:AdiumTabPositionRight]; 
    282287         
    283         return [menu autorelease];               
     288        return [menu autorelease]; 
     289
     290 
     291- (BOOL)chatHistoryDisplayActive 
     292
     293        return ([[adium.preferenceController preferenceForKey:@"Display Message Context" group:@"Message Context Display"] boolValue] && 
     294                        [[adium.preferenceController preferenceForKey:@"Enable Logging" group:@"Logging"] boolValue]); 
     295
     296- (void)setChatHistoryDisplayActive:(BOOL)flag 
     297
     298        [adium.preferenceController setPreference:[NSNumber     numberWithBool:flag] 
     299         forKey:@"Display Message Context" 
     300         group:@"Message Context Display"]; 
    284301} 
    285302 
  • trunk/Resources/en.lproj/GeneralPreferences.nib/classes.nib

    r23478 r25578  
    164164                        </dict> 
    165165                        <key>SUPERCLASS</key> 
    166                         <string>AIObject</string> 
     166                        <string>NSObject</string> 
    167167                </dict> 
    168168                <dict> 
     
    173173                        <key>SUPERCLASS</key> 
    174174                        <string>NSControl</string> 
    175                 </dict> 
    176                 <dict> 
    177                         <key>CLASS</key> 
    178                         <string>AIObject</string> 
    179                         <key>LANGUAGE</key> 
    180                         <string>ObjC</string> 
    181                         <key>SUPERCLASS</key> 
    182                         <string>NSObject</string> 
    183175                </dict> 
    184176                <dict> 
  • trunk/Resources/en.lproj/GeneralPreferences.nib/info.nib

    r23478 r25578  
    44<dict> 
    55        <key>IBFramework Version</key> 
    6         <string>629</string> 
     6        <string>672</string> 
    77        <key>IBLastKnownRelativeProjectPath</key> 
    8         <string>../../../Adium.xcodeproj</string> 
     8        <string>../../Adium.xcodeproj</string> 
    99        <key>IBOldestOS</key> 
    1010        <integer>5</integer> 
     
    1414        </array> 
    1515        <key>IBSystem Version</key> 
    16         <string>9C7010</string> 
     16        <string>9F33</string> 
    1717        <key>targetFramework</key> 
    1818        <string>IBCocoaFramework</string>